From 0872aac982f572f626275a74d1e74ce73a11ed0d Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Thu, 17 Mar 2011 11:59:32 +0100 Subject: [PATCH] Widget: Accept selectors and DOM elements as element-argument to _bind --- ui/jquery.ui.widget.js | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5