diff --git a/test/index.html b/test/index.html index f0893a766..6b540d456 100644 --- a/test/index.html +++ b/test/index.html @@ -58,12 +58,14 @@ } }, ['lodash', 'underscore'], function(lodash, underscore) { - lodashModule = lodash.noConflict(); - lodashModule.moduleName = 'lodash'; - - underscoreModule = underscore.noConflict(); - underscoreModule.moduleName = 'underscore'; - + if (lodash.noConflict) { + lodashModule = lodash.noConflict(); + lodashModule.moduleName = 'lodash'; + } + if (underscore.noConflict) { + underscoreModule = underscore.noConflict(); + underscoreModule.moduleName = 'underscore'; + } require(['test.js']); });