parent
5bb0902c5e
commit
f025ed878b
|
@ -148,7 +148,7 @@ jQuery.event = {
|
||||||
data.unshift( this.fix({ type: type, target: element }) );
|
data.unshift( this.fix({ type: type, target: element }) );
|
||||||
|
|
||||||
// Trigger the event
|
// Trigger the event
|
||||||
if ( (val = element.$handle.apply( element, data )) !== false )
|
if ( jQuery.isFunction(element.$handle) && (val = element.$handle.apply( element, data )) !== false )
|
||||||
this.triggered = true;
|
this.triggered = true;
|
||||||
|
|
||||||
if ( fn && val !== false && !jQuery.nodeName(element, 'a') )
|
if ( fn && val !== false && !jQuery.nodeName(element, 'a') )
|
||||||
|
@ -577,6 +577,7 @@ jQuery.extend({
|
||||||
document.removeEventListener( "DOMContentLoaded", jQuery.ready, false );
|
document.removeEventListener( "DOMContentLoaded", jQuery.ready, false );
|
||||||
|
|
||||||
// Remove script element used by IE hack
|
// Remove script element used by IE hack
|
||||||
|
if( !window.frames.length ) // don't remove if frames are present (#1187)
|
||||||
jQuery(window).load(function(){ jQuery("#__ie_init").remove(); });
|
jQuery(window).load(function(){ jQuery("#__ie_init").remove(); });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -991,7 +992,7 @@ if (jQuery.browser.msie)
|
||||||
var els = global[type], i = els.length;
|
var els = global[type], i = els.length;
|
||||||
if ( i && type != 'unload' )
|
if ( i && type != 'unload' )
|
||||||
do
|
do
|
||||||
jQuery.event.remove(els[i-1], type);
|
els[i-1] && jQuery.event.remove(els[i-1], type);
|
||||||
while (--i);
|
while (--i);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue