Opened 11 years ago

Closed 11 years ago

#5404 closed defect (fixed)

addOnLoad scope syntax

Reported by: Dustin Machi Owned by: alex
Priority: high Milestone: 1.1
Component: General Version: 1.0
Keywords: Cc:
Blocked By: Blocking:

Description

dojo.addOnLoad supports (function) and (obj, "functionName"), but doesn't support (obj, function) as do most of the scope accepting functions. I think this should be supported for consistency unless there is some other reason to exclude it.

This can of course be worked around doing (dojo.hitch(obj, function)), but that is of course also true in the other cases.

Change History (1)

comment:1 Changed 11 years ago by alex

Resolution: fixed
Status: newclosed

(In [13145]) updating code and docs to enable the addOnLoad(obj, function(){}); style which other dojo APIs handle. Some work to reduce code size as well. Fixes #5404

Note: See TracTickets for help on using tickets.