diff options
author | Armen Kesablyan | 2012-05-15 15:02:40 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-05-15 15:02:40 -0700 |
commit | c3452da7c18f73f45e4e6a58918f6459e7915b62 (patch) | |
tree | 3c29d3fddb30fab5f1087f94f19d453d13151b4a /js/ninja.reel/ninja.js | |
parent | 9e6c0a247bd2f14d92278bcd97fff40277b71667 (diff) | |
download | ninja-c3452da7c18f73f45e4e6a58918f6459e7915b62.tar.gz |
Finished skeleton structure for binding.
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/ninja.reel/ninja.js')
-rwxr-xr-x | js/ninja.reel/ninja.js | 6 |
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; |