Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Aug 6, 2015
1 parent eac83f2 commit d439486
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion cli/cmds/make-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ var makeRelease = function(args) {
}, []);
if (badPlatforms.length) {
utils.badArgs(module, "unknown platforms: " + badPlatforms.join(", "));
return reject();
return reject(); // eslint-disable-line
}
}

Expand Down
6 changes: 4 additions & 2 deletions lib/backup-file.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright 2014, Gregg Tavares.
* All rights reserved.
*
Expand Down Expand Up @@ -29,6 +29,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

"use strict";

var fs = require('fs');
var path = require('path');

Expand All @@ -44,7 +46,7 @@ function backup(filename, options) {
}

function makeSrcName(num) {
return num == 1 ? filename : makeBackupName(num - 1);
return num === 1 ? filename : makeBackupName(num - 1);
}

function copyFileSync(src, dst) {
Expand Down
5 changes: 1 addition & 4 deletions management/make-controller-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
"use strict";

var debug = require('debug')('make');
var buildInfo = require('./build-info');
var exporter = require('./exporter');
var fs = require('fs');
var gameInfo = require('../lib/gameinfo');
var path = require('path');
Expand Down Expand Up @@ -132,11 +130,10 @@ var makeHTML = function(runtimeInfo, gamePath, destFolder/*, options*/) {
return makeZip(runtimeInfo.originalGameId, gamePath, destPath, filter);
};

var makeUnity3d = function(runtimeInfo, gamePath, destFolder, options) {
var makeUnity3d = function(runtimeInfo, gamePath, destFolder/*, options*/) {
var gameId = runtimeInfo.originalGameId;

var ignoreFilter = readdirtree.makeIgnoreFilter(runtimeInfo.info.happyFunTimes.ignore);
var promises = [];
var destPath = path.join(destFolder, releaseUtils.safeishName(gameId) + ".controller.zip");
var binStart = "bin/";
var excludeRE = /^(src|Assets(?!\/WebPlayerTemplates)|Library|ProjectSettings|Temp)\//i;
Expand Down
28 changes: 14 additions & 14 deletions public/hft/0.x.x/scripts/misc/touch.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ define(
var setupButtons = function(options) {
var buttonInfos = [];
var buttons = options.buttons;
var expirationTime = 2000; // 2 seconds, 2000ms
//var expirationTime = 2000; // 2 seconds, 2000ms

// I don't really know what to make this number
// If the person has steady hands they can make
Expand Down Expand Up @@ -421,18 +421,18 @@ define(
// sometimes it seems we miss an out/up event and buttons
// get stuck. So, for a particlar id, if no event has come in
// for a while assume it was released.
var expireOldButtons = function() {
var now = Date.now();
buttonInfos.forEach(function(buttonInfo) {
Object.keys(buttonInfo.pointerIds).forEach(function(pointerId) {
var timeStamp = buttonInfo.pointerIds[pointerId];
var age = now - timeStamp;
if (age > expirationTime) {
removePointerId(buttonInfo, pointerId);
}
});
});
};
//var expireOldButtons = function() {
// var now = Date.now();
// buttonInfos.forEach(function(buttonInfo) {
// Object.keys(buttonInfo.pointerIds).forEach(function(pointerId) {
// var timeStamp = buttonInfo.pointerIds[pointerId];
// var age = now - timeStamp;
// if (age > expirationTime) {
// removePointerId(buttonInfo, pointerId);
// }
// });
// });
//};

var handleButtonDown = function(e, buttonInfo) {
addPointerId(buttonInfo, e.pointerId, e.timeStamp);
Expand All @@ -442,7 +442,7 @@ define(
addPointerId(buttonInfo, e.pointerId, e.timeStamp);
};

var handleButtonMove = function(e, buttonInfo) {
var handleButtonMove = function(/*e, buttonInfo*/) {
// addPointerId(buttonInfo, e.pointerId, e.timeStamp);
};

Expand Down
5 changes: 3 additions & 2 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ var config = require('../lib/config');
var log = require('../lib/log');
var Promise = require('promise');
var optionator = require('optionator')(optionSpec);
var settings;

try {
var args = optionator.parse(process.argv);
Expand All @@ -82,7 +83,7 @@ if (args.help) {
log.config(args);
config.setup(args);
if (args.settings) {
var settings = config.getSettings().settings;
settings = config.getSettings().settings;
args.settings.split(',').forEach(function(setting) {
var keyValue = setting.split('=');
var key = keyValue[0];
Expand All @@ -95,7 +96,7 @@ if (args.settings) {
});
}
if (args.port) {
var settings = config.getSettings().settings;
settings = config.getSettings().settings;
settings.port = args.port;
}

Expand Down

0 comments on commit d439486

Please sign in to comment.