Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#15423 closed defect (invalid)

dojo aspect around

Reported by: dojonovice@… Owned by:
Priority: undecided Milestone: tbd
Component: Core Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

When I use dojo/aspect around function the result is: Uncaught TypeError?: Cannot call method 'apply' of undefined

      require(["dojo/ready", "dojo/aspect"], function(ready, aspect) {
        ready(function() {
          var Aspect_obj = {
            method : function() {
              console.log("Aspect_obj method");
            }
          }
          function callMe() {
            console.log("callMe function");
          }

          aspect.around(Aspect_obj, "method", callMe);
          Aspect_obj.method();

        });
      });

Change History (2)

comment:1 Changed 8 years ago by bill

Description: modified (diff)
Resolution: invalid
Status: newclosed

Please read the documentation. Your callMe method is invalid. Also, the "Summary" field should list a summary of the problem.

comment:2 Changed 8 years ago by dojonovice@…

Ok, ty

Note: See TracTickets for help on using tickets.