Skip to content

Commit 1bad881

Browse files
committed
Swapped Transform undefined style.
1 parent e887a3a commit 1bad881

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

v3/src/checksum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
var CHECKSUM = {
2-
build: 'b0e4a5d0-0457-11e7-a84b-a92b09eaa636'
2+
build: 'b16b5aa0-045a-11e7-bb97-672c474987df'
33
};
44
module.exports = CHECKSUM;

v3/src/components/Transform.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,20 @@ var Transform = {
9494

9595
setPosition: function (x, y)
9696
{
97+
if (x === undefined) { x = 0; }
9798
if (y === undefined) { y = x; }
9899

99-
this.x = (x ? x : 0.0);
100-
this.y = (y ? y : 0.0);
100+
this.x = x;
101+
this.y = y;
101102

102103
return this;
103104
},
104105

105106
setRotation: function (radians)
106107
{
107-
this.rotation = (radians ? radians : 0.0);
108+
if (radians === undefined) { radians = 0; }
109+
110+
this.rotation = radians;
108111

109112
return this;
110113
},

0 commit comments

Comments
 (0)