mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fix #9217. oldIE error when changing detached elements, close gh-861
This commit is contained in:
parent
aa3fabce46
commit
74cc5b0984
11
src/effects.js
vendored
11
src/effects.js
vendored
@ -426,6 +426,17 @@ Tween.propHooks = {
|
||||
}
|
||||
};
|
||||
|
||||
// Remove in 2.0 - this supports IE8's panic based approach
|
||||
// to setting things on disconnected nodes
|
||||
|
||||
Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
|
||||
set: function( tween ) {
|
||||
if ( tween.elem.nodeType && tween.elem.parentNode ) {
|
||||
tween.elem[ tween.prop ] = tween.now;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
function isHidden( elem, el ) {
|
||||
elem = el || elem;
|
||||
return curCSS( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument.documentElement, elem );
|
||||
|
Loading…
Reference in New Issue
Block a user