Commit 74cc5b09 authored by Corey Frang's avatar Corey Frang Committed by Dave Methvin

Fix #9217. oldIE error when changing detached elements, close gh-861

parent aa3fabce
...@@ -426,6 +426,17 @@ Tween.propHooks = { ...@@ -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 ) { function isHidden( elem, el ) {
elem = el || elem; elem = el || elem;
return curCSS( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument.documentElement, elem ); return curCSS( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument.documentElement, elem );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment