aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.widget.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/jquery.ui.widget.js')
-rw-r--r--ui/jquery.ui.widget.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js
index 10a25b611..6c6ba3864 100644
--- a/ui/jquery.ui.widget.js
+++ b/ui/jquery.ui.widget.js
@@ -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;