Skip to content

Commit 96a7811

Browse files
committed
jshint fixes
1 parent 7157d57 commit 96a7811

1 file changed

Lines changed: 20 additions & 3 deletions

File tree

v3/src/components/Transform.js

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,24 @@ var Transform = {
1515
_rotation: 0,
1616
_z: 0,
1717

18+
// public properties / methods
19+
1820
x: 0,
1921
y: 0,
22+
2023
z: {
21-
get: function () {
24+
25+
get: function ()
26+
{
2227
return this._z;
2328
},
24-
set: function (value) {
25-
this.state.sortChildrenFlag = true;
29+
30+
set: function (value)
31+
{
32+
this.state.sys.sortChildrenFlag = true;
2633
this._z = value;
2734
}
35+
2836
},
2937

3038
scaleX: {
@@ -129,6 +137,15 @@ var Transform = {
129137
this.scaleX = x;
130138
this.scaleY = y;
131139

140+
return this;
141+
},
142+
143+
setZ: function (value)
144+
{
145+
if (value === undefined) { value = 0; }
146+
147+
this.z = value;
148+
132149
return this;
133150
}
134151

0 commit comments

Comments
 (0)