Skip to content
Permalink
Browse files

Prevent IE from firing live/delegate events on disabled elements. (#6…

…911)
  • Loading branch information
danheberden committed Oct 25, 2010
1 parent a4fc842 commit bd474799bf95f4ecdc47a7577750eaf69e2236d4
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/event.js
@@ -1068,6 +1068,11 @@ function liveHandler( event ) {
if ( event.liveFired === this || !events || !events.live || event.button && event.type === "click" ) {
return;
}

// IE will still dispatch events on disabled elements, so halt it (#6911)
if( event.target.disabled ) {
return;
}

if ( event.namespace ) {
namespace = new RegExp("(^|\\.)" + event.namespace.split(".").join("\\.(?:.*\\.)?") + "(\\.|$)");

0 comments on commit bd47479

Please sign in to comment.
You can’t perform that action at this time.