Skip to content
Permalink
Browse files

Widget: Accept selectors and DOM elements as element-argument to _bind

  • Loading branch information
jzaefferer committed Mar 17, 2011
1 parent 4f8c913 commit 0872aac982f572f626275a74d1e74ce73a11ed0d
Showing with 2 additions and 0 deletions.
  1. +2 −0 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;

0 comments on commit 0872aac

Please sign in to comment.
You can’t perform that action at this time.