fixed missing –TextExpressionSelectorPropFactor
diff --git a/player/js/utils/expressions/TextSelectorPropertyDecorator.js b/player/js/utils/expressions/TextSelectorPropertyDecorator.js
index 0e28554..f7f9519 100644
--- a/player/js/utils/expressions/TextSelectorPropertyDecorator.js
+++ b/player/js/utils/expressions/TextSelectorPropertyDecorator.js
@@ -1,43 +1,41 @@
/* global expressionHelpers, TextSelectorProp, ExpressionManager */
-/* exported TextExpressionSelectorProp */
+/* exported TextExpressionSelectorPropFactory */
-(function () {
- var TextExpressionSelectorProp = (function () { // eslint-disable-line no-unused-vars
- function getValueProxy(index, total) {
- this.textIndex = index + 1;
- this.textTotal = total;
- this.v = this.getValue() * this.mult;
- return this.v;
+var TextExpressionSelectorPropFactory = (function () { // eslint-disable-line no-unused-vars
+ function getValueProxy(index, total) {
+ this.textIndex = index + 1;
+ this.textTotal = total;
+ this.v = this.getValue() * this.mult;
+ return this.v;
+ }
+
+ return function (elem, data) {
+ this.pv = 1;
+ this.comp = elem.comp;
+ this.elem = elem;
+ this.mult = 0.01;
+ this.propType = 'textSelector';
+ this.textTotal = data.totalChars;
+ this.selectorValue = 100;
+ this.lastValue = [1, 1, 1];
+ this.k = true;
+ this.x = true;
+ this.getValue = ExpressionManager.initiateExpression.bind(this)(elem, data, this);
+ this.getMult = getValueProxy;
+ this.getVelocityAtTime = expressionHelpers.getVelocityAtTime;
+ if (this.kf) {
+ this.getValueAtTime = expressionHelpers.getValueAtTime.bind(this);
+ } else {
+ this.getValueAtTime = expressionHelpers.getStaticValueAtTime.bind(this);
}
-
- return function TextExpressionSelectorPropFactory(elem, data) {
- this.pv = 1;
- this.comp = elem.comp;
- this.elem = elem;
- this.mult = 0.01;
- this.propType = 'textSelector';
- this.textTotal = data.totalChars;
- this.selectorValue = 100;
- this.lastValue = [1, 1, 1];
- this.k = true;
- this.x = true;
- this.getValue = ExpressionManager.initiateExpression.bind(this)(elem, data, this);
- this.getMult = getValueProxy;
- this.getVelocityAtTime = expressionHelpers.getVelocityAtTime;
- if (this.kf) {
- this.getValueAtTime = expressionHelpers.getValueAtTime.bind(this);
- } else {
- this.getValueAtTime = expressionHelpers.getStaticValueAtTime.bind(this);
- }
- this.setGroupProperty = expressionHelpers.setGroupProperty;
- };
- }());
-
- var propertyGetTextProp = TextSelectorProp.getTextSelectorProp;
- TextSelectorProp.getTextSelectorProp = function (elem, data, arr) {
- if (data.t === 1) {
- return new TextExpressionSelectorPropFactory(elem, data, arr); // eslint-disable-line no-undef
- }
- return propertyGetTextProp(elem, data, arr);
+ this.setGroupProperty = expressionHelpers.setGroupProperty;
};
}());
+
+var propertyGetTextProp = TextSelectorProp.getTextSelectorProp;
+TextSelectorProp.getTextSelectorProp = function (elem, data, arr) {
+ if (data.t === 1) {
+ return new TextExpressionSelectorPropFactory(elem, data, arr); // eslint-disable-line no-undef
+ }
+ return propertyGetTextProp(elem, data, arr);
+};