(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; | |
}()); |