prevent crazy onload loop, perhaps?

This commit is contained in:
John Bintz 2011-11-25 11:20:14 -05:00
parent bd6a1afb92
commit 03a381d3cc

View File

@ -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());