aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.widget.js
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2011-03-17 11:59:32 +0100
committerjzaefferer <joern.zaefferer@gmail.com>2011-03-17 11:59:32 +0100
commit0872aac982f572f626275a74d1e74ce73a11ed0d (patch)
treec38553f5c8cbb0098c30314ef0ce8d4b0da6aed4 /ui/jquery.ui.widget.js
parent4f8c913b4af04398b2521b80aef7d1c1082cd86c (diff)
downloadjquery-ui-0872aac982f572f626275a74d1e74ce73a11ed0d.tar.gz
jquery-ui-0872aac982f572f626275a74d1e74ce73a11ed0d.zip
Widget: Accept selectors and DOM elements as element-argument to _bind
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;