Opened 14 years ago
Closed 14 years ago
#2765 closed defect (fixed)
xd: dojo.addOnLoad issue if dojo.require() things as part of an addOnLoad listener
Reported by: | James Burke | Owned by: | James Burke |
---|---|---|---|
Priority: | high | Milestone: | 0.9 |
Component: | Loader | Version: | 0.4.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
There is an issue in xd loading if you do a dojo.require() as part of an addOnLoad listener, and after
dojo.addOnLoad(function(){ dojo.require("dojo.crypto.MD5"); dojo.addOnLoad(function(){ //do something with dojo.crypto in here. }); });
The inner addOnLoad adds that listener to the same queue as the outer addonload queue, so it ends up executing before the dojo.require statements finish. Need to move the current queue off so that new dojo.addOnLoads happen after outstanding modules have loaded.
This might get a bit messy. If it looks like it will be too invasive, punt to 0.9.
Change History (2)
comment:1 Changed 14 years ago by
Milestone: | 0.4.4 → 0.9 |
---|
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Moving to 0.9.