Permalink
Browse files

Remove unneeded call to MathJax.Hub.Startup.onload()

  • Loading branch information...
1 parent 9d80f4d commit 94eacd8addb9f6c507abd5c61a9420d476f88114 @distler distler committed Sep 30, 2012
Showing with 0 additions and 4 deletions.
  1. +0 −2 app/views/layouts/default.rhtml
  2. +0 −2 app/views/wiki/s5.rhtml
@@ -43,14 +43,12 @@
extensions: ["handle-floats.js"]
}
});
- if (window._onload_fired_) MathJax.Hub.Startup.onload();
</script>
<script type="text/javascript">
if (!(Prototype.Browser.Gecko || navigator.userAgent.match(/MathPlayer/))) {
var s = document.createElement('script');
s.src = "<%= compute_public_path('MathJax.js', 'MathJax').split('?')[0] %>?config=MML_HTMLorMML-full";
document.querySelector('head').appendChild(s);
- window.addEventListener("load", function(){window._onload_fired_ = true} , false);
};
</script>
<%- end -%>
@@ -30,14 +30,12 @@
extensions: ["handle-floats.js"]
}
});
- if (window._onload_fired_) MathJax.Hub.Startup.onload();
</script>
<script type="text/javascript">
if (!(Prototype.Browser.Gecko || navigator.userAgent.match(/MathPlayer/))) {
var s = document.createElement('script');
s.src = "<%= compute_public_path('MathJax.js', 'MathJax').split('?')[0] %>?config=MML_HTMLorMML-full";
document.querySelector('head').appendChild(s);
- window.addEventListener("load", function(){window._onload_fired_ = true} , false);
};
</script>
<%- end -%>

0 comments on commit 94eacd8

Please sign in to comment.