diff options
Diffstat (limited to 'js/ninja.reel/ninja.js')
-rwxr-xr-x | js/ninja.reel/ninja.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js index d0eb1557..9f5a65bd 100755 --- a/js/ninja.reel/ninja.js +++ b/js/ninja.reel/ninja.js | |||
@@ -18,6 +18,25 @@ exports.Ninja = Montage.create(Component, { | |||
18 | value: null | 18 | value: null |
19 | }, | 19 | }, |
20 | 20 | ||
21 | _workspaceMode: { | ||
22 | value: null | ||
23 | }, | ||
24 | |||
25 | workspaceMode: { | ||
26 | get: function() { | ||
27 | return this.workspaceMode; | ||
28 | }, | ||
29 | set: function(val) { | ||
30 | if(this._workspaceMode !== val ) { | ||
31 | if(this._workspaceMode !== null) { | ||
32 | document.body.classList.remove("ws-" + this._workspaceMode); | ||
33 | } | ||
34 | document.body.classList.add("ws-" + val); | ||
35 | this._workspaceMode = val; | ||
36 | } | ||
37 | } | ||
38 | }, | ||
39 | |||
21 | toolsData: { value: null }, | 40 | toolsData: { value: null }, |
22 | appData: { value: AppData }, | 41 | appData: { value: AppData }, |
23 | 42 | ||
@@ -159,6 +178,7 @@ exports.Ninja = Montage.create(Component, { | |||
159 | 178 | ||
160 | prepareForDraw: { | 179 | prepareForDraw: { |
161 | value: function() { | 180 | value: function() { |
181 | this.workspaceMode = "default"; | ||
162 | console.log("Loading Ninja --> ", this.ninjaVersion); | 182 | console.log("Loading Ninja --> ", this.ninjaVersion); |
163 | 183 | ||
164 | this.application.ninja = this; | 184 | this.application.ninja = this; |