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
14
ui/jquery.ui.widget.js
vendored
14
ui/jquery.ui.widget.js
vendored
@ -319,14 +319,14 @@ $.Widget.prototype = {
|
||||
return ( typeof handler === "string" ? instance[ handler ] : handler )
|
||||
.apply( instance, arguments );
|
||||
}
|
||||
var match = event.match( /^(\w+)\s*(.*)$/ );
|
||||
var eventName = match[1] + "." + instance.widgetName,
|
||||
var match = event.match( /^(\w+)\s*(.*)$/ ),
|
||||
eventName = match[1] + "." + instance.widgetName,
|
||||
selector = match[2];
|
||||
if (selector === '') {
|
||||
element.bind( eventName, handlerProxy );
|
||||
} else {
|
||||
element.delegate( selector, eventName, handlerProxy );
|
||||
}
|
||||
if ( selector === '' ) {
|
||||
element.bind( eventName, handlerProxy );
|
||||
} else {
|
||||
element.delegate( selector, eventName, handlerProxy );
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user