From 18e48258c4edc69db30d4d47faa799cf7f191d67 Mon Sep 17 00:00:00 2001 From: Brian Broll Date: Mon, 11 Jul 2016 12:47:17 -0500 Subject: [PATCH] WIP #444 Fixed code climate issues --- .../ClassCodeEditor/ClassCodeEditorControl.js | 2 +- .../DeserializeEditor/DeserializeEditorControl.js | 15 ++++----------- .../panels/TextEditor/TextEditorControl.js | 3 --- 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/src/visualizers/panels/ClassCodeEditor/ClassCodeEditorControl.js b/src/visualizers/panels/ClassCodeEditor/ClassCodeEditorControl.js index 35e632946..96d1391da 100644 --- a/src/visualizers/panels/ClassCodeEditor/ClassCodeEditorControl.js +++ b/src/visualizers/panels/ClassCodeEditor/ClassCodeEditorControl.js @@ -29,7 +29,7 @@ define([ // input/output updates are actually activeNode updates ClassCodeEditorControl.prototype._onUpdate = function (id) { if (id === this._currentNodeId) { - TextEditorControl.prototype._onUpdate.call(this, this._currentNodeId); + TextEditorControl.prototype._onUpdate.call(this, id); } }; diff --git a/src/visualizers/panels/DeserializeEditor/DeserializeEditorControl.js b/src/visualizers/panels/DeserializeEditor/DeserializeEditorControl.js index 9c21f701a..60bd6f130 100644 --- a/src/visualizers/panels/DeserializeEditor/DeserializeEditorControl.js +++ b/src/visualizers/panels/DeserializeEditor/DeserializeEditorControl.js @@ -2,10 +2,10 @@ /*jshint browser: true*/ define([ - 'panels/TextEditor/TextEditorControl', + 'panels/SerializeEditor/SerializeEditorControl', 'underscore' ], function ( - TextEditorControl, + SerializeEditorControl, _ ) { @@ -15,20 +15,13 @@ define([ DeserializeEditorControl = function (options) { options.attributeName = 'deserialize'; - TextEditorControl.call(this, options); + SerializeEditorControl.call(this, options); }; _.extend( DeserializeEditorControl.prototype, - TextEditorControl.prototype + SerializeEditorControl.prototype ); - // input/output updates are actually activeNode updates - DeserializeEditorControl.prototype._onUpdate = function (id) { - if (id === this._currentNodeId) { - TextEditorControl.prototype._onUpdate.call(this, this._currentNodeId); - } - }; - return DeserializeEditorControl; }); diff --git a/src/visualizers/panels/TextEditor/TextEditorControl.js b/src/visualizers/panels/TextEditor/TextEditorControl.js index e48ae5e75..4c7c4715b 100644 --- a/src/visualizers/panels/TextEditor/TextEditorControl.js +++ b/src/visualizers/panels/TextEditor/TextEditorControl.js @@ -1,8 +1,5 @@ /*globals define, WebGMEGlobal*/ /*jshint browser: true*/ -/** - * Generated by VisualizerGenerator 1.7.0 from webgme on Wed May 18 2016 08:58:20 GMT-0500 (CDT). - */ define([ 'js/Constants',