aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2011-12-13 21:57:48 -0500
committerDave Methvin <dave.methvin@gmail.com>2011-12-13 21:57:48 -0500
commit5798eab1240734e5d04a85acd628d007f4c93765 (patch)
tree73c0f804608bfb4db73fa1e5b4742cda91be5d7f /src/event.js
parentc584ce4f562536a282c6ccfd78d5d12080850517 (diff)
downloadjquery-5798eab1240734e5d04a85acd628d007f4c93765.tar.gz
jquery-5798eab1240734e5d04a85acd628d007f4c93765.zip
Fix #10961. XRegExp's shimmed .exec() can't handle undefined.
There's no reason to call quickParse if selector is falsy, so it's a minor performance optimization anyway. No change in behavior at all on our side, so no test case needed.
Diffstat (limited to 'src/event.js')
-rw-r--r--src/event.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event.js b/src/event.js
index 8c4e9a8f1..8385008b2 100644
--- a/src/event.js
+++ b/src/event.js
@@ -101,7 +101,7 @@ jQuery.event = {
handler: handler,
guid: handler.guid,
selector: selector,
- quick: quickParse( selector ),
+ quick: selector && quickParse( selector ),
namespace: namespaces.join(".")
}, handleObjIn );