Skip to content

Commit

Permalink
Added missing scripts in footer.hbs
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed May 14, 2016
1 parent baf9448 commit fdc5c86
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions templates/partials/footer.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,30 @@

{{#if benchmark}}
<script src="/test.js"></script>
<script>
{{#if page.browserscopeID}}
ui.browserscope.key = '{{ page.browserscopeID }}'
{{/if}}
{{#each page.test}}
ui.add(
'{{ jsesc title }}',
{
'defer': {{#compare defer "y" operator="==="}}true{{ else }}false{{/compare}},
'fn': '{{{ jsesc code }}}'
}
);
{{/each}}
{{#if page.setup}}
Benchmark.prototype.setup = '{{{ jsesc page.setup }}}'
{{/if}}
{{#if page.teardown}}
Benchmark.prototype.teardown = '{{{ jsesc page.setup }}}'
{{/if}}
</script>

{{{ jsesc page.initHTML }}}
{{else}}
{{#if mainJS}}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.js"></script>
Expand Down

0 comments on commit fdc5c86

Please sign in to comment.