aboutsummaryrefslogtreecommitdiff
path: root/js/ninja.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/ninja.reel')
-rwxr-xr-xjs/ninja.reel/ninja.js20
1 files changed, 19 insertions, 1 deletions
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js
index cf7c6cf4..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
@@ -300,7 +318,7 @@ exports.Ninja = Montage.create(Component, {
300 // Turn on WebGL animation during preview 318 // Turn on WebGL animation during preview
301 _toggleWebGlAnimation: { 319 _toggleWebGlAnimation: {
302 value: function(inLivePreview) { 320 value: function(inLivePreview) {
303 var glCanvases = this.currentDocument.iframe.contentWindow.document.querySelectorAll('[data-RDGE-id]'), 321 var glCanvases = this.currentDocument.model.views.design.iframe.contentWindow.document.querySelectorAll('[data-RDGE-id]'),
304 glShapeModel; 322 glShapeModel;
305 if(glCanvases) { 323 if(glCanvases) {
306 for(var i = 0, len = glCanvases.length; i<len; i++) { 324 for(var i = 0, len = glCanvases.length; i<len; i++) {