From 03a381d3cccf9abd3c10989ec72bd27979690827 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Fri, 25 Nov 2011 11:20:14 -0500 Subject: [PATCH] prevent crazy onload loop, perhaps? --- skel/template.html.erb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/skel/template.html.erb b/skel/template.html.erb index 4da2057..0f240a4 100644 --- a/skel/template.html.erb +++ b/skel/template.html.erb @@ -15,10 +15,12 @@ log: function(msg) { JHW.stdout.puts(msg) } } - window._onload = window.onload + window._onload = window.onload; window.onload = function() { - if (window._onload) { window._onload() } + if (window._onload && (window._onload != window.onload)) { + window._onload(); + } if (window.JHW) { jasmine.getEnv().addReporter(new jasmine.HeadlessConsoleReporter());