aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects/Tween.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/Tween.js')
-rw-r--r--src/effects/Tween.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/effects/Tween.js b/src/effects/Tween.js
index 43eb8fa0b..bf501ead0 100644
--- a/src/effects/Tween.js
+++ b/src/effects/Tween.js
@@ -1,7 +1,9 @@
define( [
"../core",
+ "../css/finalPropName",
+
"../css"
-], function( jQuery ) {
+], function( jQuery, finalPropName ) {
"use strict";
@@ -84,9 +86,9 @@ Tween.propHooks = {
// Use .style if available and use plain properties where available.
if ( jQuery.fx.step[ tween.prop ] ) {
jQuery.fx.step[ tween.prop ]( tween );
- } else if ( tween.elem.nodeType === 1 &&
- ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null ||
- jQuery.cssHooks[ tween.prop ] ) ) {
+ } else if ( tween.elem.nodeType === 1 && (
+ jQuery.cssHooks[ tween.prop ] ||
+ tween.elem.style[ finalPropName( tween.prop ) ] != null ) ) {
jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
} else {
tween.elem[ tween.prop ] = tween.now;