summaryrefslogtreecommitdiff
path: root/coverage/htmlfiles/coverage_html.js
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2011-04-17 22:22:30 -0400
committerNed Batchelder <ned@nedbatchelder.com>2011-04-17 22:22:30 -0400
commit58e462dd08a66ed717f7367b430335170f38b0e1 (patch)
treeb46381ce8b85615427ffe7f021f03bffc92aa1e0 /coverage/htmlfiles/coverage_html.js
parent8df422ddf8dd2c7d1f37b6e2532efa9454d2d56a (diff)
downloadpython-coveragepy-58e462dd08a66ed717f7367b430335170f38b0e1.tar.gz
Style
Diffstat (limited to 'coverage/htmlfiles/coverage_html.js')
-rw-r--r--coverage/htmlfiles/coverage_html.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/coverage/htmlfiles/coverage_html.js b/coverage/htmlfiles/coverage_html.js
index 6798b2a..e01793f 100644
--- a/coverage/htmlfiles/coverage_html.js
+++ b/coverage/htmlfiles/coverage_html.js
@@ -90,7 +90,7 @@ coverage.pyfile_ready = function ($) {
var frag = location.hash;
if (frag.length > 2 && frag[1] === 'n') {
$(frag).addClass('highlight');
- coverage.set_sel(parseInt(frag.substr(2)));
+ coverage.set_sel(parseInt(frag.substr(2), 10));
}
else {
coverage.set_sel(0);
@@ -132,7 +132,7 @@ coverage.num_elt = function (n) {
// Return the container of all the code.
coverage.code_container = function (n) {
return $(".linenos");
-}
+};
coverage.set_sel = function (b, e) {
// The first line selected.
@@ -234,7 +234,7 @@ coverage.scroll_to_selection = function () {
if (!top.isOnScreen() || !next.isOnScreen()) {
// Need to move the page.
- var top_pos = parseInt(top.offset().top);
+ var top_pos = parseInt(top.offset().top, 10);
$("html").animate({scrollTop: top_pos-30}, 300);
}
};