completing data when text is updated by expressions
diff --git a/player/index.html b/player/index.html
index de48bf1..47e9ec0 100644
--- a/player/index.html
+++ b/player/index.html
@@ -191,7 +191,7 @@
var animData = {
container: elem,
renderer: 'svg',
- loop: true,
+ loop: false,
autoplay: true,
rendererSettings: {
progressiveLoad:false,
diff --git a/player/js/utils/text/TextProperty.js b/player/js/utils/text/TextProperty.js
index 6b534b5..61c6256 100644
--- a/player/js/utils/text/TextProperty.js
+++ b/player/js/utils/text/TextProperty.js
@@ -60,10 +60,10 @@
}
TextProperty.prototype.setCurrentData = function(data, currentTextValue){
- if(!data.__complete) {
- this.completeTextData(data);
- }
if(this.currentData !== data) {
+ if(!data.__complete) {
+ this.completeTextData(data);
+ }
this.copyFromDocumentData(data);
this.currentData.boxWidth = this.currentData.boxWidth || this.defaultBoxWidth;
this.currentData.fillColorAnim = data.fillColorAnim || this.currentData.fillColorAnim;
@@ -72,6 +72,7 @@
this._mdf = true;
} else if(currentTextValue !== this.currentData.t) {
this._mdf = true;
+ this.completeTextData(data);
}
/*var currentData = this.currentData;
currentData.ascent = data.ascent;