From baf8049ea67777fa355a76acfb73f481606600f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Szab=C3=B3?= Date: Wed, 31 Aug 2016 16:24:42 +0200 Subject: [PATCH] Fix jshint errors --- src/js/controller/FramesListController.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/js/controller/FramesListController.js b/src/js/controller/FramesListController.js index 7d7f0e1f..8ec4fe05 100644 --- a/src/js/controller/FramesListController.js +++ b/src/js/controller/FramesListController.js @@ -116,7 +116,10 @@ }; ns.FramesListController.prototype.updatePreviews_ = function () { - for (var i = 0, length = this.tiles.length; i < length; i++) { + var i; + var length; + + for (i = 0, length = this.tiles.length; i < length; i++) { // Remove selected class this.tiles[i].classList.remove('selected'); @@ -143,7 +146,7 @@ // Hide/Show buttons if needed var buttons = this.container.get(0).querySelectorAll('.delete-frame-action, .dnd-action'); var display = (this.piskelController.getFrameCount() > 1) ? 'block' : 'none'; - for (var i = 0, length = buttons.length; i < length; i++) { + for (i = 0, length = buttons.length; i < length; i++) { buttons[i].style.display = display; }