diff options
author | Ruslan Yakhyaev <ruslan@ruslan.io> | 2014-01-03 18:19:32 +0100 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2014-01-16 12:12:04 -0500 |
commit | be2a339b2beaed69105abae91a118bc1c8669a1b (patch) | |
tree | 76a3f68fffed37521905fdeb58cf2dac6367b37d /ui/jquery.ui.widget.js | |
parent | 28310ff55f062199fb2f187ea13d3561a879aea8 (diff) | |
download | jquery-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.js | 2 |
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 ) { |