diff options
Diffstat (limited to 'js/gulp/bundle.js')
-rw-r--r-- | js/gulp/bundle.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/gulp/bundle.js b/js/gulp/bundle.js index c2210e9a224..31459415cc3 100644 --- a/js/gulp/bundle.js +++ b/js/gulp/bundle.js @@ -326,12 +326,14 @@ function bundle(args) sb.write(preamble); sb.write(" var root = typeof(window) !== \"undefined\" ? window : typeof(global) !== \"undefined\" ? global : typeof(self) !== \"undefined\" ? self : {};\n"); - lineOffset += 3; + sb.write(" var ice = root.ice || {};\n"); + lineOffset += 4; args.modules.forEach( function(m){ sb.write(" root." + m + " = root." + m + " || {};\n"); lineOffset++; - + sb.write(" ice." + m + " = root." + m + ";\n"); + lineOffset++; if(m == "Ice") { sb.write(" Ice.Slice = Ice.Slice || {};\n"); |