mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Whitespace cleanup
This commit is contained in:
parent
8b14b35dc7
commit
5297b7bc42
6
ui/jquery.ui.widget.js
vendored
6
ui/jquery.ui.widget.js
vendored
@ -319,10 +319,10 @@ $.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 );
|
||||||
|
Loading…
Reference in New Issue
Block a user