jshint fixes.

This commit is contained in:
photonstorm 2015-02-22 20:08:44 +00:00
parent 8b7085e20a
commit a75e28d2b8
4 changed files with 11 additions and 11 deletions

View file

@ -74,11 +74,11 @@ module.exports = function (grunt) {
{
grunt.log.writeln("\nUse --exclude to select which modules to exclude:\n");
for (var key in modules)
for (var module in modules)
{
if (modules[key].optional)
if (modules[module].optional)
{
grunt.log.writeln(key + ' - ' + modules[key].description);
grunt.log.writeln(module + ' - ' + modules[module].description);
}
}
@ -113,15 +113,15 @@ module.exports = function (grunt) {
// Check the given modules are all valid
for (var i = 0; i < excludes.length; i++)
{
var key = excludes[i];
var exclude = excludes[i];
if (modules[key])
if (modules[exclude])
{
grunt.log.writeln("* " + key + ' - ' + modules[key].description);
grunt.log.writeln("* " + exclude + ' - ' + modules[exclude].description);
}
else
{
grunt.fail.fatal("Unknown module '" + key + "'");
grunt.fail.fatal("Unknown module '" + exclude + "'");
}
}

View file

@ -9,7 +9,7 @@
* It allows you to exclude the default Sound Manager from your build, without making Game crash.
*/
Phaser.SoundManager = function (game) {};
Phaser.SoundManager = function () {};
Phaser.SoundManager.prototype.boot = function () {};
Phaser.SoundManager.prototype.update = function () {};

View file

@ -9,7 +9,7 @@
* It allows you to exclude the default Tween Manager from your build, without making Game crash.
*/
Phaser.TweenManager = function (game) {};
Phaser.TweenManager = function () {};
Phaser.TweenManager.prototype.update = function () {};

View file

@ -3,8 +3,8 @@ module.exports = {
custom: {
expand: true,
flatten: true,
cwd: '<%= compile_dir %>/',
src: ['*.js', '*.map'],
cwd: '<%= compile_dir %>/',
src: ['*.js', '*.map'],
dest: '<%= target_dir %>/'
}