diff options
Diffstat (limited to 'js/ninja.reel')
-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 3fcce925..537d7eb0 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 | ||
@@ -148,6 +167,7 @@ exports.Ninja = Montage.create(Component, { | |||
148 | 167 | ||
149 | prepareForDraw: { | 168 | prepareForDraw: { |
150 | value: function() { | 169 | value: function() { |
170 | this.workspaceMode = "default"; | ||
151 | console.log("Loading Ninja --> ", this.ninjaVersion); | 171 | console.log("Loading Ninja --> ", this.ninjaVersion); |
152 | 172 | ||
153 | this.application.ninja = this; | 173 | this.application.ninja = this; |