mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
jQuery may be redefined or not exist do to noConflict, so using the global is bad, instead use the scoping function's $
This commit is contained in:
parent
156f07b48a
commit
392423ca51
2
ui/jquery.ui.widget.js
vendored
2
ui/jquery.ui.widget.js
vendored
@ -373,7 +373,7 @@ $.Widget.prototype = {
|
|||||||
// copy the guid so direct unbinding works
|
// copy the guid so direct unbinding works
|
||||||
if ( typeof handler !== "string" ) {
|
if ( typeof handler !== "string" ) {
|
||||||
handlerProxy.guid = handler.guid =
|
handlerProxy.guid = handler.guid =
|
||||||
handler.guid || handlerProxy.guid || jQuery.guid++;
|
handler.guid || handlerProxy.guid || $.guid++;
|
||||||
}
|
}
|
||||||
|
|
||||||
var match = event.match( /^(\w+)\s*(.*)$/ ),
|
var match = event.match( /^(\w+)\s*(.*)$/ ),
|
||||||
|
Loading…
Reference in New Issue
Block a user