Skip to content
Permalink
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...
dmethvin committed Dec 14, 2011
1 parent c584ce4 commit 5798eab1240734e5d04a85acd628d007f4c93765
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.
You can’t perform that action at this time.