Commit 5798eab1 authored by Dave Methvin's avatar Dave Methvin

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.
parent c584ce4f
...@@ -101,7 +101,7 @@ jQuery.event = { ...@@ -101,7 +101,7 @@ jQuery.event = {
handler: handler, handler: handler,
guid: handler.guid, guid: handler.guid,
selector: selector, selector: selector,
quick: quickParse( selector ), quick: selector && quickParse( selector ),
namespace: namespaces.join(".") namespace: namespaces.join(".")
}, handleObjIn ); }, handleObjIn );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment