diff --git a/src/event.js b/src/event.js index 1bfb4bbcf..f7e0a08c0 100644 --- a/src/event.js +++ b/src/event.js @@ -1099,7 +1099,7 @@ function liveHandler( event ) { for ( j = 0; j < live.length; j++ ) { handleObj = live[j]; - if ( close.selector === handleObj.selector && (!namespace || namespace.test( handleObj.namespace )) ) { + if ( close.selector === handleObj.selector && (!namespace || namespace.test( handleObj.namespace )) && !close.elem.disabled ) { elem = close.elem; related = null; diff --git a/test/delegatetest.html b/test/delegatetest.html index 6479d26ec..c4f33aaea 100644 --- a/test/delegatetest.html +++ b/test/delegatetest.html @@ -11,63 +11,71 @@
- Change each: - | -- - - | -- - | -
-
- - - - - - |
-
-
-
-
- - - - - - |
- - - | - - - | -- - | -$(document).bind('change') | -|||||||||||||||||||||||||||||||||||
+ Change each: + | ++ + + | ++ + | +
+
+ + + + + + |
+
+ + + + + |
+
+
+ + + + + + |
+ + + | + + + | ++ + | + +$(document).bind('change') + $(document).bind('click') + |
+ ||||||||||||||||||||||||||||||||||
Live: | SELECT | MULTI | CHECKBOX | +BUTTON | RADIO | FILE | TEXT | @@ -79,6 +87,7 @@SELECT | MULTI | CHECKBOX | +BUTTON | RADIO | FILE | TEXT | @@ -89,6 +98,7 @@SELECT | MULTI | CHECKBOX | +BUTTON | RADIO | FILE | TEXT | @@ -100,6 +110,7 @@SELECT | MULTI | CHECKBOX | +BUTTON | RADIO | FILE | TEXT | @@ -111,6 +122,7 @@SELECT | MULTI | CHECKBOX | +BUTTON | RADIO | FILE | TEXT | @@ -121,11 +133,24 @@SELECT | MULTI | CHECKBOX | +BUTTON | RADIO | FILE | TEXT | TEXTAREA |
Live Click: | +SELECT | +MULTI | +CHECKBOX | +BUTTON | +RADIO | +FILE | +TEXT | +TEXTAREA | +DOCUMENT | +