aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-08-12 22:10:31 -0400
committerScott González <scott.gonzalez@gmail.com>2011-08-12 22:10:31 -0400
commit4587f2de68a884bc6d749728bfd6a555efb14b54 (patch)
tree559070b8949b54c589c2ed7a49fc1ef5b5962d03 /ui
parent1729e3a32e4c2e4b922ce799f98ef0a4b1cd360e (diff)
downloadjquery-ui-4587f2de68a884bc6d749728bfd6a555efb14b54.tar.gz
jquery-ui-4587f2de68a884bc6d749728bfd6a555efb14b54.zip
Widget: Use this.widget() for event delegation.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.widget.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js
index 4c538d020..5b7942600 100644
--- a/ui/jquery.ui.widget.js
+++ b/ui/jquery.ui.widget.js
@@ -326,7 +326,7 @@ $.Widget.prototype = {
eventName = match[1] + "." + instance.widgetName,
selector = match[2];
if ( selector ) {
- element.delegate( selector, eventName, handlerProxy );
+ instance.widget().delegate( selector, eventName, handlerProxy );
} else {
element.bind( eventName, handlerProxy );
}