Skip to content

Commit

Permalink
Throw var in front of these globals
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoff Greer committed Sep 30, 2011
1 parent 6e40042 commit 3a7d0ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion popup.html
Expand Up @@ -40,7 +40,7 @@
</div>
</script>
<script id="visit_template_default" type="text/x-jquery-tmpl">
<div class="visit" style="margin-left: ${depth * 10}px;">
<div class="visit" style="margin-left: ${depth * 15}px;">
<img class="transition" src="images/transition_${visit.transition}.png">
<a href="${url}"><img src="chrome://favicon/${url}">${title}<br/>${url}</a>
at ${visit_time.toLocaleString()} visit ${visit.visitId}
Expand Down
11 changes: 6 additions & 5 deletions popup.js
@@ -1,11 +1,12 @@
history_urls = {}; // url -> visits
history_visits_to_urls = {}; // visit id -> url
history_visits = {}; // visit objects by visit id
urls_left = 0;
var history_urls = {}; // url -> visits
var history_visits_to_urls = {}; // visit id -> url
var history_visits = {}; // visit objects by visit id
var urls_left = 0;
var max_depth = 15;

function display_visit(visit, depth) {
depth = typeof(depth) !== "undefined" ? depth : 0;
if (depth > 10) {
if (depth > max_depth) {
$("#history_container").append("Depth exceeded");
return;
}
Expand Down

0 comments on commit 3a7d0ac

Please sign in to comment.