aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.widget.js
diff options
context:
space:
mode:
authorRuslan Yakhyaev <ruslan@ruslan.io>2014-01-03 18:19:32 +0100
committerScott González <scott.gonzalez@gmail.com>2014-01-16 12:12:04 -0500
commitbe2a339b2beaed69105abae91a118bc1c8669a1b (patch)
tree76a3f68fffed37521905fdeb58cf2dac6367b37d /ui/jquery.ui.widget.js
parent28310ff55f062199fb2f187ea13d3561a879aea8 (diff)
downloadjquery-ui-be2a339b2beaed69105abae91a118bc1c8669a1b.tar.gz
jquery-ui-be2a339b2beaed69105abae91a118bc1c8669a1b.zip
Widget: Support events with dashes and colons
Fixes #9708 Closes gh-1159
Diffstat (limited to 'ui/jquery.ui.widget.js')
-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 97f5fd7e0..b62b877f7 100644
--- a/ui/jquery.ui.widget.js
+++ b/ui/jquery.ui.widget.js
@@ -414,7 +414,7 @@ $.Widget.prototype = {
handler.guid || handlerProxy.guid || $.guid++;
}
- var match = event.match( /^(\w+)\s*(.*)$/ ),
+ var match = event.match( /^([\w:-]*)\s*(.*)$/ ),
eventName = match[1] + instance.eventNamespace,
selector = match[2];
if ( selector ) {