aboutsummaryrefslogtreecommitdiff
path: root/js/document/views/design.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-07 17:03:30 -0700
committerValerio Virgillito2012-05-07 17:03:30 -0700
commit4d949f141247215b5f2a6ec0cfc7d2d31cf2bb1f (patch)
treebade422fe2471a18944e846cfec1dd188a6cdae3 /js/document/views/design.js
parenta117cbed5df85c15a42776d3381904eff12e751f (diff)
parent95d23ae18efb9b314517cae07212ab840f284c3c (diff)
downloadninja-4d949f141247215b5f2a6ec0cfc7d2d31cf2bb1f.tar.gz
Merge pull request #199 from joseeight/Document
Cleaning up webGL
Diffstat (limited to 'js/document/views/design.js')
-rwxr-xr-xjs/document/views/design.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/document/views/design.js b/js/document/views/design.js
index 2b8ccb26..b23ebe78 100755
--- a/js/document/views/design.js
+++ b/js/document/views/design.js
@@ -231,6 +231,8 @@ exports.DesignDocumentView = Montage.create(BaseDocumentView, {
231 value: function (scripttags) { 231 value: function (scripttags) {
232 // 232 //
233 var i, n, webgldata; 233 var i, n, webgldata;
234 //Setting the iFrame property for reference in helper class
235 this.model.webGlHelper.iframe = this.model.views.design.iframe;
234 //Checking for webGL Data 236 //Checking for webGL Data
235 for (var w in scripttags) { 237 for (var w in scripttags) {
236 // 238 //
@@ -247,7 +249,7 @@ exports.DesignDocumentView = Montage.create(BaseDocumentView, {
247 webgldata.data[n] = unescape(webgldata.data[n]); 249 webgldata.data[n] = unescape(webgldata.data[n]);
248 } 250 }
249 //TODO: Improve setter of webGL and reference 251 //TODO: Improve setter of webGL and reference
250 this.model.glData = webgldata.data; 252 this.model.webGlHelper.glData = webgldata.data;
251 } 253 }
252 } 254 }
253 } 255 }