Opened 12 years ago
Closed 12 years ago
#5160 closed defect (fixed)
dojo.Declaration does event connections on the prototype functions
Reported by: | Neil Roberts | Owned by: | alex |
---|---|---|---|
Priority: | blocker | Milestone: | 1.0.1 |
Component: | Dijit | Version: | 1.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
If we've created a class using a type="dojo/connect" script block, the even is fired across all instances of the class.
var wcp = dojo.getObject(this.widgetClass).prototype; scripts.forEach(function(s){ var event = s.getAttribute("event"); dojo.connect(wcp, event || "postscript", null, dojo.parser._functionFromScript(s)); });
Change History (5)
comment:1 Changed 12 years ago by
Owner: | changed from slightlyoff to alex |
---|
comment:2 Changed 12 years ago by
comment:4 Changed 12 years ago by
comment:5 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Do we hold up 1.0.1 for this, or should this be for 1.0.2?