Skip to content

Commit 5798eab

Browse files
committed
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.
1 parent c584ce4 commit 5798eab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jQuery.event = {
101101
handler: handler,
102102
guid: handler.guid,
103103
selector: selector,
104-
quick: quickParse( selector ),
104+
quick: selector && quickParse( selector ),
105105
namespace: namespaces.join(".")
106106
}, handleObjIn );
107107

0 commit comments

Comments
 (0)