Ticket #5160 (closed defect: fixed)
dojo.Declaration does event connections on the prototype functions
| Reported by: | pottedmeat | Owned by: | alex |
|---|---|---|---|
| Priority: | highest | Milestone: | 1.0.1 |
| Component: | Dijit | Version: | 1.0 |
| Severity: | blocker | Keywords: | |
| Cc: |
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
Note: See
TracTickets for help on using
tickets.