Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Correct dep paths and usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Mar 4, 2015
1 parent ad06611 commit 76360f7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 23 deletions.
6 changes: 3 additions & 3 deletions example/jsperf/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<!-- http:https://jsperf.com/benchmark-js-test-page -->
<link rel="stylesheet" href="main.css">
<script>document.documentElement.className = 'js'</script>
<!--[if lt IE 9]><script src="https://rawgithub.com/bestiejs/html5.js/master/html5.js"></script><![endif]-->
<!--[if lt IE 9]><script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.js"></script><![endif]-->
</head>
<body>
<article>
Expand Down Expand Up @@ -232,8 +232,8 @@ <h2>Add a comment</h2>
&middot; by <a href="http:https://mathiasbynens.be/" title="Mathias Bynens, front-end web developer">@mathias</a>
</footer>

<script src="../../vendor/lodash/dist/lodash.compat.js"></script>
<script src="../../vendor/platform.js/platform.js"></script>
<script src="../../node_modules/lodash-compat/index.js"></script>
<script src="../../node_modules/platform/platform.js"></script>
<script src="../../benchmark.js"></script>
<script src="ui.js"></script>
<script src="../../plugin/ui.browserscope.js"></script>
Expand Down
30 changes: 14 additions & 16 deletions plugin/ui.browserscope.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
*/
function setHTML(element, html, object) {
if ((element = query(element)[0])) {
element.innerHTML = _.template(html, object || {});
element.innerHTML = _.template(html)(object || {});
}
return element;
}
Expand Down Expand Up @@ -626,14 +626,13 @@
'_bC=function(){clearTimeout(_bT);parent.setTimeout(function(){purge();load()},${refresh}*1e3)},' +
'_bT=setTimeout(function(){_bC=function(){};render()},${timeout}*1e3)' +
'}<\/script>' +
'<script src=https://www.browserscope.org/user/beacon/${key}?callback=_bC><\/script>',
{
'doctype': doctype,
'key': me.key,
'refresh': me.timings.refresh,
'timeout': me.timings.timeout
}
));
'<script src=https://www.browserscope.org/user/beacon/${key}?callback=_bC><\/script>'
)({
'doctype': doctype,
'key': me.key,
'refresh': me.timings.refresh,
'timeout': me.timings.timeout
}));
// avoid the IE spinner of doom
// http:https://www.google.com/search?q=IE+throbber+of+doom
idoc.close();
Expand Down Expand Up @@ -1022,13 +1021,12 @@
'<span>Browserscope</span></a></h1>' +
'<div class=bs-rt><div id=bs-chart></div></div>' +
'</div>' +
'</body></html>',
{
'doctype': doctype,
'href': href,
'key': key
}
));
'</body></html>'
)({
'doctype': doctype,
'href': href,
'key': key
}));
// avoid the IE spinner of doom
// http:https://www.google.com/search?q=IE+throbber+of+doom
idoc.close();
Expand Down
8 changes: 4 additions & 4 deletions test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<div id="qunit"></div>
<script src="../node_modules/qunitjs/qunit/qunit.js"></script>
<script src="../node_modules/qunit-extras/qunit-extras.js"></script>
<script src="../node_modules/lodash-compat/lodash.js"></script>
<script src="../node_modules/platform.js/platform.js"></script>
<script src="../node_modules/lodash-compat/index.js"></script>
<script src="../node_modules/platform/platform.js"></script>
<script>
QUnit.config.hidepassed = true;
QUnit.urlParams.nojava = /[?&]nojava=true(?:&|$)/.test(location.search);
Expand Down Expand Up @@ -66,11 +66,11 @@
{
'name': 'lodash',
'location': '../node_modules/lodash-compat',
'main': 'lodash'
'main': 'index'
},
{
'name': 'platform',
'location': '../node_modules/platform.js',
'location': '../node_modules/platform',
'main': 'platform'
},
{
Expand Down

0 comments on commit 76360f7

Please sign in to comment.