From 74cc5b0984335532ab272b8286566000c4bf3daf Mon Sep 17 00:00:00 2001 From: Corey Frang Date: Fri, 13 Jul 2012 16:03:21 -0500 Subject: [PATCH] Fix #9217. oldIE error when changing detached elements, close gh-861 --- src/effects.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/effects.js b/src/effects.js index 22e79f1ba..8ab41cbd3 100644 --- a/src/effects.js +++ b/src/effects.js @@ -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 ); -- 2.39.5