unbind handlers with data + test (#935)
This commit is contained in:
parent
14aafdf319
commit
2897b1bd23
2 changed files with 12 additions and 5 deletions
|
@ -32,8 +32,11 @@ jQuery.event = {
|
|||
}
|
||||
|
||||
// Make sure that the function being executed has a unique ID
|
||||
if ( !handler.guid )
|
||||
if ( !handler.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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue