diff options
Diffstat (limited to 'js/ninja.reel/ninja.js')
-rwxr-xr-x | js/ninja.reel/ninja.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js index cf7c6cf4..4d7d883d 100755 --- a/js/ninja.reel/ninja.js +++ b/js/ninja.reel/ninja.js | |||
@@ -173,12 +173,17 @@ exports.Ninja = Montage.create(Component, { | |||
173 | } | 173 | } |
174 | }, | 174 | }, |
175 | 175 | ||
176 | |||
177 | //////////////////////////////////////////////////////////////////// | ||
178 | //TODO: Expand method to allow other browsers for preview | ||
176 | executeChromePreview: { | 179 | executeChromePreview: { |
177 | value: function () { | 180 | value: function () { |
178 | this.application.ninja.documentController.activeDocument.livePreview(); | 181 | this.application.ninja.documentController.activeDocument.model.browserPreview('chrome'); |
179 | } | 182 | } |
180 | }, | 183 | }, |
181 | 184 | //////////////////////////////////////////////////////////////////// | |
185 | |||
186 | |||
182 | handleResize: { | 187 | handleResize: { |
183 | value: function() { | 188 | value: function() { |
184 | this.stage.resizeCanvases = true; | 189 | this.stage.resizeCanvases = true; |
@@ -300,7 +305,7 @@ exports.Ninja = Montage.create(Component, { | |||
300 | // Turn on WebGL animation during preview | 305 | // Turn on WebGL animation during preview |
301 | _toggleWebGlAnimation: { | 306 | _toggleWebGlAnimation: { |
302 | value: function(inLivePreview) { | 307 | value: function(inLivePreview) { |
303 | var glCanvases = this.currentDocument.iframe.contentWindow.document.querySelectorAll('[data-RDGE-id]'), | 308 | var glCanvases = this.currentDocument.model.views.design.iframe.contentWindow.document.querySelectorAll('[data-RDGE-id]'), |
304 | glShapeModel; | 309 | glShapeModel; |
305 | if(glCanvases) { | 310 | if(glCanvases) { |
306 | for(var i = 0, len = glCanvases.length; i<len; i++) { | 311 | for(var i = 0, len = glCanvases.length; i<len; i++) { |