diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2011-03-17 11:59:32 +0100 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2011-03-17 11:59:32 +0100 |
commit | 0872aac982f572f626275a74d1e74ce73a11ed0d (patch) | |
tree | c38553f5c8cbb0098c30314ef0ce8d4b0da6aed4 /ui | |
parent | 4f8c913b4af04398b2521b80aef7d1c1082cd86c (diff) | |
download | jquery-ui-0872aac982f572f626275a74d1e74ce73a11ed0d.tar.gz jquery-ui-0872aac982f572f626275a74d1e74ce73a11ed0d.zip |
Widget: Accept selectors and DOM elements as element-argument to _bind
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.widget.js | 2 |
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; |