Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

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.
  • Loading branch information...
commit 5798eab1240734e5d04a85acd628d007f4c93765 1 parent c584ce4
@dmethvin dmethvin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/event.js
2  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 );

0 comments on commit 5798eab

Please sign in to comment.
Something went wrong with that request. Please try again.