Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
jQuery may be redefined or not exist do to noConflict, so using the g…
…lobal is bad, instead use the scoping function's $
  • Loading branch information
sroussey committed Jun 18, 2012
1 parent 156f07b commit 392423c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.widget.js
Expand Up @@ -373,7 +373,7 @@ $.Widget.prototype = {
// copy the guid so direct unbinding works
if ( typeof handler !== "string" ) {
handlerProxy.guid = handler.guid =
handler.guid || handlerProxy.guid || jQuery.guid++;
handler.guid || handlerProxy.guid || $.guid++;
}

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

0 comments on commit 392423c

Please sign in to comment.