aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCorey Frang <gnarf@gnarf.net>2012-07-13 16:03:21 -0500
committerDave Methvin <dave.methvin@gmail.com>2012-07-22 22:13:31 -0400
commit74cc5b0984335532ab272b8286566000c4bf3daf (patch)
tree2ead5429f022bb5f283589cc77b09873be4c8943 /src
parentaa3fabce461313f7c31e9a250df57165f15be873 (diff)
downloadjquery-74cc5b0984335532ab272b8286566000c4bf3daf.tar.gz
jquery-74cc5b0984335532ab272b8286566000c4bf3daf.zip
Fix #9217. oldIE error when changing detached elements, close gh-861
Diffstat (limited to 'src')
-rw-r--r--src/effects.js11
1 files changed, 11 insertions, 0 deletions
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 );