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:
Steven Roussey 2012-06-18 15:09:28 -07:00
parent 156f07b48a
commit 392423ca51

View File

@ -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*(.*)$/ ),