From 8b14b35dc72afce16b544b011a04d1e5ea1b7344 Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Sun, 19 Jun 2011 14:59:18 +0200 Subject: Widget delegation: Fix impl and add basisc test --- ui/jquery.ui.widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') 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 === '') { -- cgit v1.2.3