We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a57c435 commit 0ff3396Copy full SHA for 0ff3396
ui/jquery.ui.widget.js
@@ -322,10 +322,10 @@ $.Widget.prototype = {
322
var match = event.match( /^(\w+)\s*(.*)$/ ),
323
eventName = match[1] + "." + instance.widgetName,
324
selector = match[2];
325
- if ( selector === '' ) {
326
- element.bind( eventName, handlerProxy );
327
- } else {
+ if ( selector ) {
328
element.delegate( selector, eventName, handlerProxy );
+ } else {
+ element.bind( eventName, handlerProxy );
329
}
330
});
331
},
0 commit comments