[dojo-contributors] dojo.attr() - no disconnect

Mike Wilcox mwilcox at sitepen.com
Tue Oct 21 10:11:02 EDT 2008


Continuing my blog on dojo.attr()....

I've realized that if you use dojo.attr to connect an event, you're  
pretty much stuck with it and can't disconnect it.

dojo.attr(node, "onmouseover")
  - in FF returns null
  - in IE returns the anonymous function from somewhere in dojo.connect.

I think it would be preferable to return the handle to the connection.  
Or more accurately, an array of handles, in the case of more than one  
connection.


Mike Wilcox
mwilcox at sitepen.com
http://www.sitepen.com
work: 650.968.8787 x218
cell:	  214.697.4872




More information about the dojo-contributors mailing list