aboutsummaryrefslogtreecommitdiff
path: root/js/ninja.reel/ninja.js
diff options
context:
space:
mode:
authorArmen Kesablyan2012-05-11 15:03:10 -0700
committerArmen Kesablyan2012-05-11 15:03:22 -0700
commitc80e7df1702dff09b5cc8447ab0619747fed2024 (patch)
treeed45ae752fd1427e03e39d8174df44de00a45f83 /js/ninja.reel/ninja.js
parente3efa52c409ef05c28bfc5f1f25a750b5132c3bd (diff)
downloadninja-c80e7df1702dff09b5cc8447ab0619747fed2024.tar.gz
created the initial environment requirements for workspace to be manipulated.
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/ninja.reel/ninja.js')
-rwxr-xr-xjs/ninja.reel/ninja.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js
index edc1efa4..7ab8e52c 100755
--- a/js/ninja.reel/ninja.js
+++ b/js/ninja.reel/ninja.js
@@ -18,6 +18,24 @@ 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-" + val);
33 }
34 document.body.classList.add("ws-" + val);
35 }
36 }
37 },
38
21 toolsData: { value: null }, 39 toolsData: { value: null },
22 appData: { value: AppData }, 40 appData: { value: AppData },
23 41