aboutsummaryrefslogtreecommitdiff
path: root/js/ninja.reel/ninja.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/ninja.reel/ninja.js')
-rwxr-xr-xjs/ninja.reel/ninja.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js
index 7ab8e52c..75b2203e 100755
--- a/js/ninja.reel/ninja.js
+++ b/js/ninja.reel/ninja.js
@@ -27,11 +27,12 @@ exports.Ninja = Montage.create(Component, {
27 return this.workspaceMode; 27 return this.workspaceMode;
28 }, 28 },
29 set: function(val) { 29 set: function(val) {
30 if( this._workspaceMode === val ) { 30 if(this._workspaceMode !== val ) {
31 if(this._workspaceMode !== null) { 31 if(this._workspaceMode !== null) {
32 document.body.classList.remove("ws-" + val); 32 document.body.classList.remove("ws-" + this._workspaceMode);
33 } 33 }
34 document.body.classList.add("ws-" + val); 34 document.body.classList.add("ws-" + val);
35 this._workspaceMode = val;
35 } 36 }
36 } 37 }
37 }, 38 },
@@ -166,6 +167,7 @@ exports.Ninja = Montage.create(Component, {
166 167
167 prepareForDraw: { 168 prepareForDraw: {
168 value: function() { 169 value: function() {
170 this.workspaceMode = "default";
169 console.log("Loading Ninja --> ", this.ninjaVersion); 171 console.log("Loading Ninja --> ", this.ninjaVersion);
170 172
171 this.application.ninja = this; 173 this.application.ninja = this;