Skip to content

Commit

Permalink
Fix #10961. XRegExp's shimmed .exec() can't handle undefined.
Browse files Browse the repository at this point in the history
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 5798eab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/event.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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 );


Expand Down

0 comments on commit 5798eab

Please sign in to comment.