Whitespace cleanup

This commit is contained in:
Jörn Zaefferer 2011-06-20 22:31:28 +02:00
parent 8b14b35dc7
commit 5297b7bc42

View File

@ -319,14 +319,14 @@ $.Widget.prototype = {
return ( typeof handler === "string" ? instance[ handler ] : handler ) return ( typeof handler === "string" ? instance[ handler ] : handler )
.apply( instance, arguments ); .apply( instance, arguments );
} }
var match = event.match( /^(\w+)\s*(.*)$/ ); var match = event.match( /^(\w+)\s*(.*)$/ ),
var eventName = match[1] + "." + instance.widgetName, eventName = match[1] + "." + instance.widgetName,
selector = match[2]; selector = match[2];
if (selector === '') { if ( selector === '' ) {
element.bind( eventName, handlerProxy ); element.bind( eventName, handlerProxy );
} else { } else {
element.delegate( selector, eventName, handlerProxy ); element.delegate( selector, eventName, handlerProxy );
} }
}); });
}, },