aboutsummaryrefslogtreecommitdiff
path: root/js/document/views
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-05-07 16:31:04 -0700
committerJose Antonio Marquez2012-05-07 16:31:04 -0700
commitf031c950361251e45f4c2e6795bcb832985e9d25 (patch)
treebade422fe2471a18944e846cfec1dd188a6cdae3 /js/document/views
parent1f09edbdc5d557c3e3fb71c0a1719014adb0ce3a (diff)
downloadninja-f031c950361251e45f4c2e6795bcb832985e9d25.tar.gz
Moving webGL to own helper class
Cleaning up webGL for better working files.
Diffstat (limited to 'js/document/views')
-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 }