git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unbind handlers with data + test (#935)
[jquery.git]
/
src
/
event
/
event.js
diff --git
a/src/event/event.js
b/src/event/event.js
index
9b5feb1
..
a3db2f3
100644
(file)
--- a/
src/event/event.js
+++ b/
src/event/event.js
@@
-32,8
+32,11
@@
jQuery.event = {
}
// Make sure that the function being executed has a unique ID
}
// Make sure that the function being executed has a unique ID
- if ( !handler.guid )
+ if ( !handler.guid ) {
handler.guid = this.guid++;
handler.guid = this.guid++;
+ // Don't forget to set guid for the original handler function
+ if (fn) fn.guid = handler.guid;
+ }
// Init the element's event structure
if (!element.$events)
// Init the element's event structure
if (!element.$events)