Skip to content

Commit 776c148

Browse files
committed
Fixed jshint errors.
1 parent 8d914be commit 776c148

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/geom/Hermite.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ Phaser.Hermite = function (p1x, p1y, p2x, p2y, v1x, v1y, v2x, v2y, accuracy) {
104104
* @property {Phaser.Point} _temp1 - A local cached Point object.
105105
* @private
106106
*/
107-
this._temp1 = new Phaser.Point;
107+
this._temp1 = new Phaser.Point();
108108

109109
/**
110110
* @property {Phaser.Point} _temp2 - A local cached Point object.
111111
* @private
112112
*/
113-
this._temp2 = new Phaser.Point;
113+
this._temp2 = new Phaser.Point();
114114

115115
this.recalculate();
116116

@@ -229,8 +229,8 @@ Phaser.Hermite.prototype = {
229229

230230
if (t > 1)
231231
{
232-
t = 1;
233-
}
232+
t = 1;
233+
}
234234
}
235235

236236
var t2 = t * t;
@@ -262,8 +262,8 @@ Phaser.Hermite.prototype = {
262262

263263
if (t > 1)
264264
{
265-
t = 1;
266-
}
265+
t = 1;
266+
}
267267
}
268268

269269
var t2 = t * t;
@@ -293,8 +293,8 @@ Phaser.Hermite.prototype = {
293293

294294
if (t > 1)
295295
{
296-
t = 1;
297-
}
296+
t = 1;
297+
}
298298

299299
var t2 = t * t;
300300
var t3 = t * t2;
@@ -344,8 +344,8 @@ Phaser.Hermite.prototype = {
344344

345345
if (t === undefined) { t = 0; }
346346

347-
this.getPoint(t - .01, this._temp1);
348-
this.getPoint(t + .01, this._temp2);
347+
this.getPoint(t - 0.01, this._temp1);
348+
this.getPoint(t + 0.01, this._temp2);
349349

350350
return Math.atan2(this._temp2.y - this._temp1.y, this._temp2.x - this._temp1.x);
351351

0 commit comments

Comments
 (0)