prevent crazy onload loop, perhaps?
This commit is contained in:
parent
bd6a1afb92
commit
03a381d3cc
@ -15,10 +15,12 @@
|
|||||||
log: function(msg) { JHW.stdout.puts(msg) }
|
log: function(msg) { JHW.stdout.puts(msg) }
|
||||||
}
|
}
|
||||||
|
|
||||||
window._onload = window.onload
|
window._onload = window.onload;
|
||||||
|
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
if (window._onload) { window._onload() }
|
if (window._onload && (window._onload != window.onload)) {
|
||||||
|
window._onload();
|
||||||
|
}
|
||||||
|
|
||||||
if (window.JHW) {
|
if (window.JHW) {
|
||||||
jasmine.getEnv().addReporter(new jasmine.HeadlessConsoleReporter());
|
jasmine.getEnv().addReporter(new jasmine.HeadlessConsoleReporter());
|
||||||
|
Loading…
Reference in New Issue
Block a user