Skip to content

Commit a75e28d

Browse files
committed
jshint fixes.
1 parent 8b7085e commit a75e28d

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

Gruntfile.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ module.exports = function (grunt) {
7474
{
7575
grunt.log.writeln("\nUse --exclude to select which modules to exclude:\n");
7676

77-
for (var key in modules)
77+
for (var module in modules)
7878
{
79-
if (modules[key].optional)
79+
if (modules[module].optional)
8080
{
81-
grunt.log.writeln(key + ' - ' + modules[key].description);
81+
grunt.log.writeln(module + ' - ' + modules[module].description);
8282
}
8383
}
8484

@@ -113,15 +113,15 @@ module.exports = function (grunt) {
113113
// Check the given modules are all valid
114114
for (var i = 0; i < excludes.length; i++)
115115
{
116-
var key = excludes[i];
116+
var exclude = excludes[i];
117117

118-
if (modules[key])
118+
if (modules[exclude])
119119
{
120-
grunt.log.writeln("* " + key + ' - ' + modules[key].description);
120+
grunt.log.writeln("* " + exclude + ' - ' + modules[exclude].description);
121121
}
122122
else
123123
{
124-
grunt.fail.fatal("Unknown module '" + key + "'");
124+
grunt.fail.fatal("Unknown module '" + exclude + "'");
125125
}
126126
}
127127

src/stubs/SoundManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* It allows you to exclude the default Sound Manager from your build, without making Game crash.
1010
*/
1111

12-
Phaser.SoundManager = function (game) {};
12+
Phaser.SoundManager = function () {};
1313

1414
Phaser.SoundManager.prototype.boot = function () {};
1515
Phaser.SoundManager.prototype.update = function () {};

src/stubs/TweenManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* It allows you to exclude the default Tween Manager from your build, without making Game crash.
1010
*/
1111

12-
Phaser.TweenManager = function (game) {};
12+
Phaser.TweenManager = function () {};
1313

1414
Phaser.TweenManager.prototype.update = function () {};
1515

tasks/options/copy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ module.exports = {
33
custom: {
44
expand: true,
55
flatten: true,
6-
cwd: '<%= compile_dir %>/',
7-
src: ['*.js', '*.map'],
6+
cwd: '<%= compile_dir %>/',
7+
src: ['*.js', '*.map'],
88
dest: '<%= target_dir %>/'
99
}
1010

0 commit comments

Comments
 (0)