From: Steven Roussey Date: Mon, 18 Jun 2012 22:09:28 +0000 (-0700) Subject: jQuery may be redefined or not exist do to noConflict, so using the global is bad... X-Git-Tag: 1.9.0-beta.1~17 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F682%2Fhead;p=jquery-ui.git jQuery may be redefined or not exist do to noConflict, so using the global is bad, instead use the scoping function's $ --- diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js index 5366beefe..dfad19220 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/jquery.ui.widget.js @@ -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*(.*)$/ ),