Skip to content

Commit 6f0a911

Browse files
committed
Made the code jshint-friendly
1 parent 9e2ca08 commit 6f0a911

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/math/Math.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ Phaser.Math = {
829829
/**
830830
* A Linear Interpolation Method, mostly used by Phaser.Tween.
831831
* @method Phaser.Math#linearInterpolation
832-
* @param {number} v
832+
* @param {Array} v
833833
* @param {number} k
834834
* @return {number}
835835
*/
@@ -942,13 +942,17 @@ Phaser.Math = {
942942
* @return {number}
943943
*/
944944
factorial : function( value ){
945-
if(value == 0) return 1;
945+
946+
if(value === 0)
947+
{
948+
return 1;
949+
}
946950

947951
var res = value;
948952

949953
while( --value )
950954
{
951-
res *= value;
955+
res *= value;
952956
}
953957

954958
return res;

0 commit comments

Comments
 (0)