Skip to content

Commit 2ef888c

Browse files
author
Ben Barnett
committed
2 parents b039069 + e572c6c commit 2ef888c

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

scripts/src/jquery.animate-enhanced.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Changelog:
7979
8080
0.99 (5/12/2012):
8181
- PR #109 Added support for list-item nodes. FadeIn on tags was omitting the list-style support. (thx @SeanCannon)
82-
82+
8383
0.98 (12/11/2012):
8484
- Merging pull request #106 thx @gboysko - checking for ownerDocument before using getComputedStyle
8585
@@ -92,7 +92,7 @@ Changelog:
9292
0.96 (20/08/2012):
9393
- Fixes for context, all elements returned as context (issue #84)
9494
- Reset position with leaveTransforms !== true fixes (issue #93)
95-
95+
9696
9797
0.95 (20/08/2012):
9898
- If target opacity == current opacity, pass back to jquery native to get callback firing (#94)
@@ -346,7 +346,7 @@ Changelog:
346346
// this is a nasty fix, but we check for prop == 'd' to see if we're dealing with SVG, and abort
347347
if (prop == "d") return;
348348
if (!_isValidElement(e)) return;
349-
349+
350350
var parts = rfxnum.exec(val),
351351
start = e.css(prop) === 'auto' ? 0 : e.css(prop),
352352
cleanCSSStart = typeof start == 'string' ? _cleanValue(start) : start,
@@ -627,8 +627,8 @@ Changelog:
627627
toggle3DByDefault: function() {
628628
return use3DByDefault = !use3DByDefault;
629629
},
630-
631-
630+
631+
632632
/**
633633
@public
634634
@name toggleDisabledByDefault
@@ -737,8 +737,11 @@ Changelog:
737737
}
738738
if (isTranslatable && typeof selfCSSData.meta !== 'undefined') {
739739
for (var j = 0, dir; (dir = directions[j]); ++j) {
740-
restore[dir] = selfCSSData.meta[dir + '_o'] + valUnit;
741-
jQuery(this).css(dir, restore[dir]);
740+
var stashedProperty = selfCSSData.meta[dir + '_o'];
741+
if (stashedProperty) {
742+
restore[dir] = stashedProperty + valUnit;
743+
jQuery(this).css(dir, restore[dir]);
744+
}
742745
}
743746
}
744747
}

0 commit comments

Comments
 (0)