diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-06-19 14:59:18 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-06-19 14:59:18 +0200 |
commit | 8b14b35dc72afce16b544b011a04d1e5ea1b7344 (patch) | |
tree | 9e2cb2a8a0162dc382686b68f71318527f0cfbcd /ui/jquery.ui.widget.js | |
parent | aa7f8195f8c288dbefcb92064b68cb28064ac64c (diff) | |
download | jquery-ui-8b14b35dc72afce16b544b011a04d1e5ea1b7344.tar.gz jquery-ui-8b14b35dc72afce16b544b011a04d1e5ea1b7344.zip |
Widget delegation: Fix impl and add basisc test
Diffstat (limited to 'ui/jquery.ui.widget.js')
-rw-r--r-- | ui/jquery.ui.widget.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js index cf138f774..0e5695d97 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/jquery.ui.widget.js @@ -319,7 +319,7 @@ $.Widget.prototype = { return ( typeof handler === "string" ? instance[ handler ] : handler ) .apply( instance, arguments ); } - var match = key.match( /^(\w+)\s*(.*)$/ ); + var match = event.match( /^(\w+)\s*(.*)$/ ); var eventName = match[1] + "." + instance.widgetName, selector = match[2]; if (selector === '') { |