Opened 6 years ago

Closed 6 years ago

#17583 closed defect (invalid)

dojo.on object is not set up after request

Reported by: olga.szklarska@… Owned by:
Priority: undecided Milestone: tbd
Component: General Version: 1.9.1
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

After request(["dojo/on"],function(dojoOn) {}) inside the function the object dojoOn is usable. However, outside the scope of the function, the dojo.on is not declared. The workaround is really easy, but the bug itself is little annoying - forces to write multiple "request" statements.

Change History (1)

comment:1 Changed 6 years ago by bill

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

That's how it's supposed to work. One of the main principles of AMD is to not create global variables.

Note: See TracTickets for help on using tickets.