From 8e4ea8437f53ca1b723fc759207f0a5f992d5903 Mon Sep 17 00:00:00 2001 From: James Lissiak Date: Mon, 1 Jun 2015 10:38:10 -0700 Subject: [PATCH] Fixing unnecessary whitespace changes - My editor added additional whitespace to several unchanged lines, so I just reverted them --- src/js/controller/dialogs/ImportImageController.js | 12 ++++++------ src/templates/dialogs/import-image.html | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/js/controller/dialogs/ImportImageController.js b/src/js/controller/dialogs/ImportImageController.js index 23b5c569..c501e624 100644 --- a/src/js/controller/dialogs/ImportImageController.js +++ b/src/js/controller/dialogs/ImportImageController.js @@ -1,6 +1,6 @@ (function () { var ns = $.namespace('pskl.controller.dialogs'); - var PREVIEW_HEIGHT = 60; + var PREVIEW_HEIGHT = 60; ns.ImportImageController = function (piskelController) { this.importedImage_ = null; @@ -20,7 +20,7 @@ this.resizeWidth = $('[name=resize-width]'); this.resizeHeight = $('[name=resize-height]'); - this.smoothResize = $('[name=smooth-resize-checkbox]'); + this.smoothResize = $('[name=smooth-resize-checkbox]'); this.frameCountX = $('[name=frame-count-x]'); this.frameCountY = $('[name=frame-count-y]'); @@ -86,7 +86,7 @@ // FIXME : We remove the onload callback here because JsGif will insert // the image again and we want to avoid retriggering the image onload - this.importedImage_.onload = function () { }; + this.importedImage_.onload = function () {}; var fileName = this.extractFileNameFromPath_(this.file_.name); this.fileNameContainer.html(fileName); @@ -126,18 +126,18 @@ if (image) { if (window.confirm('You are about to create a new Piskel, unsaved changes will be lost.')) { var gifLoader = new window.SuperGif({ - gif: image + gif : image }); gifLoader.load({ - success: function () { + success : function () { var images = gifLoader.getFrames().map(function (frame) { return pskl.utils.CanvasUtils.createFromImageData(frame.data); }); this.createPiskelFromImages_(images); this.closeDialog(); }.bind(this), - error: function () { + error : function () { var images = pskl.utils.CanvasUtils.createFramesFromImage( image, this.frameCountX.val(), diff --git a/src/templates/dialogs/import-image.html b/src/templates/dialogs/import-image.html index 53a0a5fa..e4a1b71e 100644 --- a/src/templates/dialogs/import-image.html +++ b/src/templates/dialogs/import-image.html @@ -14,17 +14,17 @@
Size : - x - + x +
Frames : - x - + x +
Smooth resize : - +