aboutsummaryrefslogtreecommitdiff
path: root/js/ninja.reel
diff options
context:
space:
mode:
authorKruti Shah2012-06-27 09:25:42 -0700
committerKruti Shah2012-06-27 09:25:42 -0700
commitd6bffa2450f68bdf9bfff0f4e155778f59f3624a (patch)
treec37300f67a3fb502d7f4e277600944739d48fd82 /js/ninja.reel
parentb52747edbeba7d210fca98acccb2d2df52134bca (diff)
parent46174eb0ce93d660c8d2e9276fbdc4f9a03f056a (diff)
downloadninja-d6bffa2450f68bdf9bfff0f4e155778f59f3624a.tar.gz
Merge branch 'refs/heads/ninjainternalmaster' into Timeline-local-kruti
Diffstat (limited to 'js/ninja.reel')
-rwxr-xr-xjs/ninja.reel/ninja.html9
-rwxr-xr-xjs/ninja.reel/ninja.js25
2 files changed, 34 insertions, 0 deletions
diff --git a/js/ninja.reel/ninja.html b/js/ninja.reel/ninja.html
index 1bd002ae..94db0cac 100755
--- a/js/ninja.reel/ninja.html
+++ b/js/ninja.reel/ninja.html
@@ -354,6 +354,14 @@
354 } 354 }
355 }, 355 },
356 356
357 "objectsController" : {
358 "prototype": "js/controllers/objects-controller",
359 "bindings": {
360 "currentDocument": {"<-": "@documentList.selectedObjects.0"},
361 "objects": {"<-": "@documentList.selectedObjects.0.model.mObjects"}
362 }
363 },
364
357 "clipboardController": { 365 "clipboardController": {
358 "prototype": "js/controllers/clipboard-controller" 366 "prototype": "js/controllers/clipboard-controller"
359 }, 367 },
@@ -387,6 +395,7 @@
387 "timeline": {"@": "timeline"}, 395 "timeline": {"@": "timeline"},
388 "mainMenuController": {"@": "mainMenuController"}, 396 "mainMenuController": {"@": "mainMenuController"},
389 "codeEditorController": {"@": "codeEditorController"}, 397 "codeEditorController": {"@": "codeEditorController"},
398 "objectsController": {"@": "objectsController"},
390 "rightPanelContainer": {"#": "rightPanelContainer" }, 399 "rightPanelContainer": {"#": "rightPanelContainer" },
391 "panelSplitter": {"@": "splitter3"}, 400 "panelSplitter": {"@": "splitter3"},
392 "timelineSplitter": {"@": "splitter4"}, 401 "timelineSplitter": {"@": "splitter4"},
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;