From 3d58bcae6c0f68a32d65975952399f19e1010d6b Mon Sep 17 00:00:00 2001 From: juliandescottes Date: Thu, 9 Apr 2015 18:24:34 +0200 Subject: [PATCH] Fix jshint errors --- Gruntfile.js | 2 +- build/closure/piskel-closure-externs.js | 3 ++- src/js/model/frame/AsyncCachedFrameProcessor.js | 2 +- src/js/service/CurrentColorsService.js | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 97a5c40c..4fae11de 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -91,7 +91,7 @@ module.exports = function(grunt) { trailing : true, curly : true, es3 : true, - globals : {'$':true, 'jQuery' : true, 'pskl':true, 'Events':true, 'Constants':true, 'console' : true, 'module':true, 'require':true} + globals : {'$':true, 'jQuery' : true, 'pskl':true, 'Events':true, 'Constants':true, 'console' : true, 'module':true, 'require':true, 'Q':true} }, files: [ 'Gruntfile.js', diff --git a/build/closure/piskel-closure-externs.js b/build/closure/piskel-closure-externs.js index 485d392e..42aefda9 100755 --- a/build/closure/piskel-closure-externs.js +++ b/build/closure/piskel-closure-externs.js @@ -15,4 +15,5 @@ var pskl; var define; var jQuery; var getComputedStyle; -var URL; \ No newline at end of file +var URL; +var Q; \ No newline at end of file diff --git a/src/js/model/frame/AsyncCachedFrameProcessor.js b/src/js/model/frame/AsyncCachedFrameProcessor.js index c3465947..fcb5401f 100644 --- a/src/js/model/frame/AsyncCachedFrameProcessor.js +++ b/src/js/model/frame/AsyncCachedFrameProcessor.js @@ -52,5 +52,5 @@ cache[secondCacheKey] = processedFrame; cache[firstCacheKey] = processedFrame; deferred.resolve(processedFrame); - } + }; })(); \ No newline at end of file diff --git a/src/js/service/CurrentColorsService.js b/src/js/service/CurrentColorsService.js index f808172a..3594053d 100644 --- a/src/js/service/CurrentColorsService.js +++ b/src/js/service/CurrentColorsService.js @@ -63,9 +63,9 @@ Object.keys(result).forEach(function (color) { colors[color] = true; }); - }) + }); this.updateCurrentColorsReady_(colors); - }.bind(this)) + }.bind(this)); }; ns.CurrentColorsService.prototype.updateCurrentColorsReady_ = function (colors) {