Skip to content

Commit 428505f

Browse files
author
Christian Wesselhoeft
committed
Enable jshint immed flag.
1 parent 3b4c034 commit 428505f

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.jshintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"forin" : false, // Tolerate `for in` loops without `hasOwnPrototype`.
2525
"freeze" : true, // Prohibits overwriting prototypes of native objects such as Array and Date.
2626
"funcscope" : true, // This option suppresses warnings about declaring variables inside of control structures while accessing them later from the outside.
27-
"immed" : false, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
27+
"immed" : true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
2828
"iterator" : true, // This option suppresses warnings about the __iterator__ property.
2929
"latedef" : true, // Prohibit variable use before definition.
3030
"laxbreak" : false, // Tolerate unsafe line breaks e.g. `return [\n] x` without semicolons.

src/math/Math.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ Phaser.Math = {
995995

996996
if (typeof startIndex === "undefined") { startIndex = 0; }
997997
if (typeof length === "undefined") { length = 0; }
998-
998+
999999
if (objects != null) {
10001000

10011001
var l = length;
@@ -1311,7 +1311,7 @@ Phaser.Math = {
13111311
* @method Phaser.Math#degToRad
13121312
* @return {function}
13131313
*/
1314-
degToRad: function() {
1314+
degToRad: (function() {
13151315

13161316
var degreeToRadiansFactor = Math.PI / 180;
13171317

@@ -1321,15 +1321,15 @@ Phaser.Math = {
13211321

13221322
};
13231323

1324-
}(),
1324+
}()),
13251325

13261326
/**
13271327
* Convert degrees to radians.
13281328
*
13291329
* @method Phaser.Math#radToDeg
13301330
* @return {function}
13311331
*/
1332-
radToDeg: function() {
1332+
radToDeg: (function() {
13331333

13341334
var radianToDegreesFactor = 180 / Math.PI;
13351335

@@ -1339,6 +1339,6 @@ Phaser.Math = {
13391339

13401340
};
13411341

1342-
}()
1342+
}())
13431343

13441344
};

0 commit comments

Comments
 (0)