mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
jshint fixes.
This commit is contained in:
parent
8b7085e20a
commit
a75e28d2b8
4 changed files with 11 additions and 11 deletions
14
Gruntfile.js
14
Gruntfile.js
|
@ -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 + "'");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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 () {};
|
||||
|
|
|
@ -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 () {};
|
||||
|
||||
|
|
|
@ -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 %>/'
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue