aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
authorhwc4872012-03-06 16:03:26 -0800
committerhwc4872012-03-06 16:03:26 -0800
commit855e8727b147771ff7b05e71bed481e65fe4b6b0 (patch)
tree60d7f091fcf0870495aeaa63748492dbd558619d /js/mediators
parent1207735f05f202b5bdc5f70c73445f8e0934a227 (diff)
parent4f498b43264327f5886e0370bd3536453d47570a (diff)
downloadninja-855e8727b147771ff7b05e71bed481e65fe4b6b0.tar.gz
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into integration
Conflicts: js/preloader/Preloader.js
Diffstat (limited to 'js/mediators')
-rw-r--r--js/mediators/io-mediator.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/mediators/io-mediator.js b/js/mediators/io-mediator.js
index e763c67c..65218526 100644
--- a/js/mediators/io-mediator.js
+++ b/js/mediators/io-mediator.js
@@ -150,7 +150,7 @@ exports.IoMediator = Montage.create(Component, {
150 switch (file.mode) { 150 switch (file.mode) {
151 case 'html': 151 case 'html':
152 //Copy webGL library if needed 152 //Copy webGL library if needed
153 if (file.webgl.length > 0) { 153 if (file.webgl && file.webgl.length > 0) {
154 for (var i in this.application.ninja.coreIoApi.ninjaLibrary.libs) { 154 for (var i in this.application.ninja.coreIoApi.ninjaLibrary.libs) {
155 //Checking for RDGE library to be available 155 //Checking for RDGE library to be available
156 if (this.application.ninja.coreIoApi.ninjaLibrary.libs[i].name === 'RDGE') { 156 if (this.application.ninja.coreIoApi.ninjaLibrary.libs[i].name === 'RDGE') {
@@ -308,7 +308,7 @@ exports.IoMediator = Montage.create(Component, {
308 } 308 }
309 } 309 }
310 //Checking for webGL elements in document 310 //Checking for webGL elements in document
311 if (template.webgl.length) { 311 if (template.webgl && template.webgl.length) {
312 // 312 //
313 var json, matchingtags = [], webgltag, scripts = template.document.content.document.getElementsByTagName('script'); 313 var json, matchingtags = [], webgltag, scripts = template.document.content.document.getElementsByTagName('script');
314 // 314 //