]> source.dussan.org Git - jquery-ui.git/commitdiff
jQuery may be redefined or not exist do to noConflict, so using the global is bad... 682/head
authorSteven Roussey <sroussey@gmail.com>
Mon, 18 Jun 2012 22:09:28 +0000 (15:09 -0700)
committerSteven Roussey <sroussey@gmail.com>
Mon, 18 Jun 2012 22:09:28 +0000 (15:09 -0700)
ui/jquery.ui.widget.js

index 5366beefece8b1b58448a36fa78a55125731893f..dfad1922030c3e162181d3574e66fb68da7fa392 100644 (file)
@@ -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*(.*)$/ ),