blob: 8b9ffcc9739c1b89c2fc893311d9dd3e188427c8 [file] [log] [blame]
(function addDecorator() {
function searchExpressions(){
if(this.data.d.x){
this.calculateExpression = ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this);
this.addEffect(this.getExpressionValue.bind(this));
return true;
}
}
TextProperty.prototype.getExpressionValue = function(currentValue) {
var newValue = this.calculateExpression(currentValue.t);
currentValue.t = newValue;
return currentValue;
}
TextProperty.prototype.searchProperty = function(){
var isKeyframed = this.searchKeyframes();
var hasExpressions = this.searchExpressions();
this.kf = isKeyframed || hasExpressions;
return this.kf;
};
TextProperty.prototype.searchExpressions = searchExpressions;
}());