Skip to content

Commit

Permalink
removed jQuery dependency, rspec is passing now
Browse files Browse the repository at this point in the history
  • Loading branch information
fred authored and xiaods committed Jan 17, 2013
1 parent 93b752c commit a8025a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/lazy_high_charts/layout_helper.rb
Expand Up @@ -66,9 +66,11 @@ def build_html_output(type, placeholder, object, &block)
graph =<<-EOJS
<script type="text/javascript">
(function() {
$(document).ready(function() {
var onload = window.onload;
window.onload = function(){
if (typeof onload == "function") onload();
#{core_js}
});
};
})()
</script>
EOJS
Expand Down

0 comments on commit a8025a5

Please sign in to comment.