Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

hopefully this should fix load in IE < 9

  • Loading branch information...
commit 80d9e57e1f992fab8701b1c2eb123e6d04fe6b79 1 parent 1c06bd2
@jnicklas jnicklas authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/evergreen/views/run.erb
View
3  lib/evergreen/views/run.erb
@@ -32,7 +32,8 @@
<% @suite.templates.each do |template| %>
Evergreen.templates[<%= template.name.to_json %>] = <%= template.escaped_contents %>;
<% end %>
- window.addEventListener('load', function() {
+ eventFunction = window.addEventListener ? 'addEventListener' : 'attachEvent';
+ window[eventFunction]('load', function() {
var jasmineEnv = jasmine.getEnv();
jasmineEnv.addReporter(new jasmine.TrivialReporter());
jasmineEnv.addReporter(new Evergreen.ReflectiveReporter());
Please sign in to comment.
Something went wrong with that request. Please try again.