From 4663d023f2b5f829a5d3bd37da70094771d8e24f Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 22 Dec 2015 23:15:38 +0100 Subject: [PATCH] Inspection fixes --- Controller.js | 6 +++--- Models/Editor.js | 18 +++++++++--------- ModuleDraw.js | 20 ++++++++++---------- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Controller.js b/Controller.js index 4f4cecd..75490da 100644 --- a/Controller.js +++ b/Controller.js @@ -25,15 +25,15 @@ this.editors.push(temp); } } - } + }; jsOMS.Modules.Draw.prototype.getElements = function() { return this.editors; - } + }; jsOMS.Modules.Draw.prototype.count = function() { return this.editors.length; - } + }; }(window.jsOMS = window.jsOMS || {})); jsOMS.ready(function () { diff --git a/Models/Editor.js b/Models/Editor.js index fbc8112..83286a1 100644 --- a/Models/Editor.js +++ b/Models/Editor.js @@ -133,22 +133,22 @@ // remove x first undos from history // add this step to undo } - } + }; jsOMS.Modules.Draw.Editor.prototype.setSize = function (size) { this.size = size; - } + }; jsOMS.Modules.Draw.Editor.prototype.setType = function (type) { this.type = type; - } + }; jsOMS.Modules.Draw.Editor.prototype.setColor = function (color) { this.color = color; - } + }; jsOMS.Modules.Draw.Editor.prototype.toImage = function (callback) { @@ -156,12 +156,12 @@ image.onload = function () { callback(image); - } + }; image.src = this.canvas.toDataURL('image/png'); // return image; - } + }; jsOMS.Modules.Draw.Editor.prototype.mousePosition = function (evt) { @@ -170,7 +170,7 @@ x: evt.clientX - rect.left - 0.5, y: evt.clientY - rect.top - 0.5 }; - } + }; jsOMS.Modules.Draw.Editor.prototype.resize = function (size) { @@ -184,7 +184,7 @@ this.canvas.height = size.height; this.canvas.getContext('2d').drawImage(tmpCanvas, 0, 0, tmpCanvas.width, tmpCanvas.height, 0, 0, this.canvas.width, this.canvas.height); - } + }; jsOMS.Modules.Draw.Editor.prototype.scale = function (scale) { @@ -195,5 +195,5 @@ tmpCanvas.getContext('2d').drawImage(this.canvas, 0, 0); this.canvas.getContext('2d').drawImage(tmpCanvas, 0, 0, tmpCanvas.width, tmpCanvas.height, 0, 0, scale.width, scale.height); - } + }; }(window.jsOMS = window.jsOMS || {})); diff --git a/ModuleDraw.js b/ModuleDraw.js index ebb5ebd..2178024 100644 --- a/ModuleDraw.js +++ b/ModuleDraw.js @@ -28,17 +28,17 @@ this.editors.push(temp); } } - } + }; jsOMS.Modules.Draw.prototype.getElements = function () { return this.editors; - } + }; jsOMS.Modules.Draw.prototype.count = function () { return this.editors.length; - } + }; }(window.jsOMS = window.jsOMS || {})); jsOMS.ready(function () @@ -201,22 +201,22 @@ jsOMS.ready(function () // remove x first undos from history // add this step to undo } - } + }; jsOMS.Modules.Draw.Editor.prototype.setSize = function (size) { this.size = size; - } + }; jsOMS.Modules.Draw.Editor.prototype.setType = function (type) { this.type = type; - } + }; jsOMS.Modules.Draw.Editor.prototype.setColor = function (color) { this.color = color; - } + }; jsOMS.Modules.Draw.Editor.prototype.mousePosition = function (evt) { @@ -225,7 +225,7 @@ jsOMS.ready(function () x: evt.clientX - rect.left - 0.5, y: evt.clientY - rect.top - 0.5 }; - } + }; jsOMS.Modules.Draw.Editor.prototype.resize = function (size) { @@ -239,7 +239,7 @@ jsOMS.ready(function () this.canvas.height = size.height; this.canvas.getContext('2d').drawImage(tmpCanvas, 0, 0, tmpCanvas.width, tmpCanvas.height, 0, 0, this.canvas.width, this.canvas.height); - } + }; jsOMS.Modules.Draw.Editor.prototype.scale = function (scale) { @@ -250,5 +250,5 @@ jsOMS.ready(function () tmpCanvas.getContext('2d').drawImage(this.canvas, 0, 0); this.canvas.getContext('2d').drawImage(tmpCanvas, 0, 0, tmpCanvas.width, tmpCanvas.height, 0, 0, scale.width, scale.height); - } + }; }(window.jsOMS = window.jsOMS || {}));