Skip to content

Commit ce678b4

Browse files
committed
Fix RTE when transform components don’t match
1 parent 3b4b6de commit ce678b4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tweenjs/plugins/CSSPlugin.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,10 @@ this.createjs = this.createjs||{};
248248
var component = [result[1]], compareComp = compare && compare[list.length];
249249

250250
// check that the operation type matches (ex. "translate" vs "rotate"):
251-
if (compare && (!compareComp || component[0] !== compareComp[0])) { console.log("transforms don't match: ",component[0],compareComp[0]); compare=null; } // component doesn't match
251+
if (compare && (!compareComp || component[0] !== compareComp[0])) {
252+
console.log("transforms don't match: ", component[0], compareComp&&compareComp[0]);
253+
compare=null;
254+
} // component doesn't match
252255

253256
parseMulti(result[2], compareComp, component);
254257

0 commit comments

Comments
 (0)