Closed esidegallery closed 7 years ago
I think it would be useful to be able to check whether a tween is animating a given property, especially as calling Tween.getEndValue() throws an error if the property doesn't exist, and try/catch statements can be expensive.
Thank you!
Indeed, that makes a lot of sense! Thanks for the suggestion!
I just added the new method animatesProperty(property:String):Boolean. That should do the trick!
animatesProperty(property:String):Boolean
I think it would be useful to be able to check whether a tween is animating a given property, especially as calling Tween.getEndValue() throws an error if the property doesn't exist, and try/catch statements can be expensive.
Thank you!