mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Merge branch 'master' into interactions
This commit is contained in:
commit
ed463ab80c
7
ui/jquery.ui.widget.js
vendored
7
ui/jquery.ui.widget.js
vendored
@ -329,6 +329,13 @@ $.Widget.prototype = {
|
|||||||
return ( typeof handler === "string" ? instance[ handler ] : handler )
|
return ( typeof handler === "string" ? instance[ handler ] : handler )
|
||||||
.apply( instance, arguments );
|
.apply( instance, arguments );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// copy the guid so direct unbinding works
|
||||||
|
if ( typeof handler !== "string" ) {
|
||||||
|
handlerProxy.guid = handler.guid =
|
||||||
|
handler.guid || handlerProxy.guid || jQuery.guid++;
|
||||||
|
}
|
||||||
|
|
||||||
var match = event.match( /^(\w+)\s*(.*)$/ ),
|
var match = event.match( /^(\w+)\s*(.*)$/ ),
|
||||||
eventName = match[1] + "." + instance.widgetName,
|
eventName = match[1] + "." + instance.widgetName,
|
||||||
selector = match[2];
|
selector = match[2];
|
||||||
|
Loading…
Reference in New Issue
Block a user