Skip to content

Commit 8c0a400

Browse files
committed
rename out to output to match others
1 parent 118ea6f commit 8c0a400

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/geom/Circle.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,21 +135,21 @@ Phaser.Circle.prototype = {
135135
/**
136136
* Returns a new Circle object with the same values for the x, y, width, and height properties as this Circle object.
137137
* @method Phaser.Circle#clone
138-
* @param {Phaser.Circle} out - Optional Circle object. If given the values will be set into the object, otherwise a brand new Circle object will be created and returned.
138+
* @param {Phaser.Circle} output - Optional Circle object. If given the values will be set into the object, otherwise a brand new Circle object will be created and returned.
139139
* @return {Phaser.Circle} The cloned Circle object.
140140
*/
141-
clone: function (out) {
141+
clone: function (output) {
142142

143-
if (typeof out === "undefined")
143+
if (typeof output === "undefined")
144144
{
145-
out = new Phaser.Circle(this.x, this.y, this.diameter);
145+
output = new Phaser.Circle(this.x, this.y, this.diameter);
146146
}
147147
else
148148
{
149-
out.setTo(this.x, this.y, this.diameter);
149+
output.setTo(this.x, this.y, this.diameter);
150150
}
151151

152-
return out;
152+
return output;
153153

154154
},
155155

src/geom/Ellipse.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,21 +101,21 @@ Phaser.Ellipse.prototype = {
101101
/**
102102
* Returns a new Ellipse object with the same values for the x, y, width, and height properties as this Ellipse object.
103103
* @method Phaser.Ellipse#clone
104-
* @param {Phaser.Ellipse} out - Optional Ellipse object. If given the values will be set into the object, otherwise a brand new Ellipse object will be created and returned.
104+
* @param {Phaser.Ellipse} output - Optional Ellipse object. If given the values will be set into the object, otherwise a brand new Ellipse object will be created and returned.
105105
* @return {Phaser.Ellipse} The cloned Ellipse object.
106106
*/
107-
clone: function(out) {
107+
clone: function(output) {
108108

109-
if (typeof out === "undefined")
109+
if (typeof output === "undefined")
110110
{
111-
out = new Phaser.Ellipse(this.x, this.y, this.width, this.height);
111+
output = new Phaser.Ellipse(this.x, this.y, this.width, this.height);
112112
}
113113
else
114114
{
115-
out.setTo(this.x, this.y, this.width, this.height);
115+
output.setTo(this.x, this.y, this.width, this.height);
116116
}
117117

118-
return out;
118+
return output;
119119

120120
},
121121

0 commit comments

Comments
 (0)