aboutsummaryrefslogtreecommitdiff
path: root/js/ninja.reel/ninja.js
diff options
context:
space:
mode:
authorEric Guzman2012-06-27 10:32:47 -0700
committerEric Guzman2012-06-27 10:32:47 -0700
commit58f1de4f1cb0f59abd47cec4430a032c073f85e9 (patch)
treea6c2af9be68e6881311074bd3c8cc461deee7203 /js/ninja.reel/ninja.js
parenta72b6809e214eb524f866440a55f8366f078c240 (diff)
parent2ebf3e3ea24d0d580575dfa13d31588dac1de445 (diff)
downloadninja-58f1de4f1cb0f59abd47cec4430a032c073f85e9.tar.gz
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into CSSPanel_GIO
Diffstat (limited to 'js/ninja.reel/ninja.js')
-rwxr-xr-xjs/ninja.reel/ninja.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js
index 61cd2487..f1825b9a 100755
--- a/js/ninja.reel/ninja.js
+++ b/js/ninja.reel/ninja.js
@@ -191,9 +191,33 @@ exports.Ninja = Montage.create(Component, {
191 } 191 }
192 }, 192 },
193 193
194 _workspaceMode: {
195 value: null
196 },
197
198 workspaceMode: {
199 get: function() {
200 return this._workspaceMode;
201 },
202 set: function(val) {
203 if(this._workspaceMode !== val ) {
204 if(this._workspaceMode !== null) {
205 document.body.classList.remove("ws-" + this._workspaceMode);
206 }
207 document.body.classList.add("ws-" + val);
208 this._workspaceMode = val;
209 }
210 }
211 },
212
213 _isResizing: {
214 value: null
215 },
216
194 _resizedHeight : { 217 _resizedHeight : {
195 value: 0 218 value: 0
196 }, 219 },
220
197 _height: { 221 _height: {
198 value: null 222 value: null
199 }, 223 },
@@ -307,6 +331,7 @@ exports.Ninja = Montage.create(Component, {
307 331
308 prepareForDraw: { 332 prepareForDraw: {
309 value: function() { 333 value: function() {
334 this.workspaceMode = "default";
310 console.log("Loading Ninja --> ", this.ninjaVersion); 335 console.log("Loading Ninja --> ", this.ninjaVersion);
311 336
312 this.application.ninja = this; 337 this.application.ninja = this;