Skip to content

Commit

Permalink
WIP #444 Fixed code climate issues
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb committed Jul 11, 2016
1 parent 8f8e54e commit 18e4825
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
/*jshint browser: true*/

define([
'panels/TextEditor/TextEditorControl',
'panels/SerializeEditor/SerializeEditorControl',
'underscore'
], function (
TextEditorControl,
SerializeEditorControl,
_
) {

Expand All @@ -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;
});
3 changes: 0 additions & 3 deletions src/visualizers/panels/TextEditor/TextEditorControl.js
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit 18e4825

Please sign in to comment.