Skip to content

Commit 14c4ae7

Browse files
author
Dennis Hergaarden
committed
fix values without unit
1 parent 46ff0a1 commit 14c4ae7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/tweenjs/plugins/CSSPlugin.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,11 @@ this.createjs = this.createjs || {};
169169
cssData[prop] = "";
170170
return initVal;
171171
} else {
172-
cssData[prop] = result.unit;
172+
if (result.unit == 'number')
173+
cssData[prop] = '';
174+
else
175+
cssData[prop] = result.unit;
176+
173177
return result.value;
174178
}
175179
};

0 commit comments

Comments
 (0)