Skip to content

Commit 61ec87e

Browse files
author
dmp42
committed
Fix cc / fix stacktrace version / add console in debug mode
1 parent 5ba12e4 commit 61ec87e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/onegateisopening/boot.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@
125125
var common = function(debug, version) {
126126
// XXX technically, this is not the same thing as HTML cond includes...
127127
// So, this may or may not be a good idea...
128-
if (false /*@cc_on || @_jscript_version <= 8 @*/) {
128+
var isIe = eval("/*@cc_on @_jscript_version <= 8 && !@*/false");
129+
if (isIe) {
129130
bootLoader.use('ie7', '2.1');
130131
bootLoader.wait();
131132
}
@@ -136,12 +137,15 @@
136137
bootLoader.wait();
137138
bootLoader.use(bootLoader.MINGUS, null, null, debug);
138139
// Stacktrace should be in core prolly
139-
bootLoader.use('stacktrace', version || '0.4', null, debug);
140+
bootLoader.use('stacktrace', version || 'stable', null, debug);
140141
bootLoader.wait();
141142
bootLoader.use(bootLoader.CORE, null, null, debug);
142143
bootLoader.wait();
143-
if (debug)
144+
if (debug){
145+
// And so console
146+
bootLoader.use('console', version || 'stable', null, debug);
144147
bootLoader.use(bootLoader.DEBUG, null, null, debug);
148+
}
145149
// XXX is a separate stack obviously
146150
// bootLoader.use(bootLoader.UI);
147151
};

0 commit comments

Comments
 (0)