Permalink
Browse files

Change the way that onload handler is registered so it only runs once

  • Loading branch information...
1 parent db387bb commit 50981c10d51f6989ef473c2a88bbab7596ed1f8b @karenc committed Jul 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/assets/javascripts/fakesnladders.js
@@ -116,4 +116,4 @@ function init(e) {
redraw();
}
-addEventListener('load', init, false);
+window.onload = init;

0 comments on commit 50981c1

Please sign in to comment.