Fix jshint errors

This commit is contained in:
Dávid Szabó 2016-08-31 16:24:42 +02:00 committed by Julian Descottes
parent 74b7f93ddb
commit baf8049ea6

View File

@ -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;
}