You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
widget.connect was smart enough to remember the handles created via that call and tear them down when widget is destroyed. widget.on does not have the same behavior so we should be tearing down those connections somehow - maybe via widget.own or maybe by fixing dijit to do it automatically. see http://bugs.dojotoolkit.org/ticket/16219 for the bug in dijit to have it fixed
The text was updated successfully, but these errors were encountered:
For incorrect usages of widget.connect(), where external code uses it to monitor events within a widget, like it says in http://bugs.dojotoolkit.org/ticket/16219 there's no need to worry about teardown. For example:
That doesn't work in all cases though, like when the first argument to connect is different than "myWidget", or the target method ("onClick" in the above example) doesn't start with "on". In those cases you'd want something like:
widget.connect
was smart enough to remember the handles created via that call and tear them down when widget is destroyed.widget.on
does not have the same behavior so we should be tearing down those connections somehow - maybe viawidget.own
or maybe by fixing dijit to do it automatically. see http://bugs.dojotoolkit.org/ticket/16219 for the bug in dijit to have it fixedThe text was updated successfully, but these errors were encountered: