Opened 10 years ago
Closed 10 years ago
#16004 closed enhancement (duplicate)
dojo.on() function accidentally calls jQuery when a node is decorated by jQuery.on()
Reported by: | ffan | Owned by: | Kris Zyp |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | Events | Version: | 1.8.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
I'm using the dojo1.8.0 release. Our project uses both dojo and jQuery(1.5.2). I found that the dojo.on() function somehow calls into JQuery if jQuery already added an 'on()' function to the DOM node
--for example: line 17392 of dojo.js.uncompressed.js if jQuery has installed on() function on the object node, dojo.on() will call that jQuery function -- var keydownSignal = on(object, "keydown", function(evt){ ... }
I file this as an enhancement as I always believe dojo is better than jQuery.
Change History (3)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
Component: | Core → Events |
---|---|
Owner: | set to Kris Zyp |
Note: See
TracTickets for help on using
tickets.
Actually the true problem is that the handler returned by jQuery.on() doesn't provide 'remove' attribute and it would cause problem when dijit.popup is closed. So I'm wondering if dojo can add a 'remove' attribute to user defined handlers. For example: