dojo clone event handlers
I'm using dojo.clone(obj)
for clone DOM node, but i don't know how clone even开发者_如何学运维t handlers. does anybody know how do this?
If obj
is a DOM node, it just does obj.cloneNode(true)
. It makes no specific attempts to clone events. So, you are at the will of whatever events obj.cloneNode(true)
clones, which has been answered here.
精彩评论