#44 closed defect (fixed)
Request syntax sugar for pushing an onLoad event listener
Reported by: | Owned by: | alex | |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | Core | Version: | 0.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
We have these options for adding a load-time event listener:
dojo.event.connect(dojo.hostenv, "loaded", "init");
or
dojo.hostenv.modulesLoadedListeners.push(init);
It would be nice to have something simpler for this particular event (as it tends to be sort of 'up front' in the app):
dojo.addOnLoad(init);
or something like that.
Change History (6)
comment:1 Changed 16 years ago by
Milestone: | → 0.1release |
---|---|
Owner: | changed from Alex to alex |
comment:2 Changed 16 years ago by
Component: | General → Core |
---|
comment:3 Changed 16 years ago by
Milestone: | 0.1release → 0.2release |
---|---|
Version: | → 0.0 |
comment:4 Changed 16 years ago by
Milestone: | 0.2release → 0.1release |
---|
comment:5 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
(In [1224]) fixes #44, making dojo.addOnLoad available. You can call it like so: