mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Widget: Accept selectors and DOM elements as element-argument to _bind
This commit is contained in:
parent
4f8c913b4a
commit
0872aac982
2
ui/jquery.ui.widget.js
vendored
2
ui/jquery.ui.widget.js
vendored
@ -262,6 +262,8 @@ $.Widget.prototype = {
|
||||
handlers = element;
|
||||
element = this.element;
|
||||
} else {
|
||||
// accept selectors, DOM elements
|
||||
element = $( element );
|
||||
this.bindings = this.bindings.add( element );
|
||||
}
|
||||
var instance = this;
|
||||
|
Loading…
Reference in New Issue
Block a user