Skip to content

Commit 392423c

Browse files
committed
jQuery may be redefined or not exist do to noConflict, so using the global is bad, instead use the scoping function's $
1 parent 156f07b commit 392423c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.widget.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ $.Widget.prototype = {
373373
// copy the guid so direct unbinding works
374374
if ( typeof handler !== "string" ) {
375375
handlerProxy.guid = handler.guid =
376-
handler.guid || handlerProxy.guid || jQuery.guid++;
376+
handler.guid || handlerProxy.guid || $.guid++;
377377
}
378378

379379
var match = event.match( /^(\w+)\s*(.*)$/ ),

0 commit comments

Comments
 (0)