Skip to content
Browse files

added check to see if object has a field of 'style' before checking t…

…he __cssMap
  • Loading branch information...
1 parent 741b2b7 commit fc10b01879c219af63e4ca87228dca021a15b486 @skial committed Oct 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 feffects/Tween.hx
View
2 feffects/Tween.hx
@@ -157,7 +157,7 @@ class TweenProperty extends Tween{
___onUpdateParams = ___onUpdateParams.concat( onUpdateParams );
#if js
- __isCss = Reflect.hasField(__cssMap, property);
+ __isCss = (Reflect.hasField(target, 'style') && Reflect.hasField(__cssMap, property));
__cssValue = __isCss ? Reflect.field(__cssMap, property) : '';
var from = !__isCss ? Reflect.getProperty( target, property ) : Std.parseFloat(Reflect.getProperty( target.style, property ));
#else

0 comments on commit fc10b01

Please sign in to comment.
Something went wrong with that request. Please try again.