Merge branch 'jquery_dev' of http://github.com/danheberden/jquery into danheberden-jquery_dev

This commit is contained in:
John Resig 2010-10-25 20:25:25 -07:00
commit a68a85ad09

View file

@ -1069,6 +1069,11 @@ function liveHandler( event ) {
return; return;
} }
// IE will still dispatch events on disabled elements, so halt it (#6911)
if( event.target.disabled ) {
return;
}
if ( event.namespace ) { if ( event.namespace ) {
namespace = new RegExp("(^|\\.)" + event.namespace.split(".").join("\\.(?:.*\\.)?") + "(\\.|$)"); namespace = new RegExp("(^|\\.)" + event.namespace.split(".").join("\\.(?:.*\\.)?") + "(\\.|$)");
} }