diff options
author | Mark Longair <mhl@pobox.com> | 2012-11-20 18:06:15 +0000 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2012-11-20 18:06:15 +0000 |
commit | f78eb58631afbafea6c27aa03650b51205bebc8c (patch) | |
tree | ac41729eb9027c015b0cea0f1f985e17d3ba7dd2 /www/js | |
parent | fed0938af70f43bcf8153d53061c00613856e962 (diff) |
Keep loop counters in function rather than global scope
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/mobile.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/www/js/mobile.js b/www/js/mobile.js index e7d04cf..1e93847 100644 --- a/www/js/mobile.js +++ b/www/js/mobile.js @@ -56,6 +56,7 @@ function location_error( msg ) { } function lookup_string(q) { + var i; q = q.toLowerCase(); q = q.replace(/[^\-&\w ']/, ' '); q = q.replace(/\s+/, ' '); @@ -562,6 +563,7 @@ function submit_back() { } function display_saved_reports() { + var i; if ( localStorage.getObject( 'reports' ) ) { var r = localStorage.getObject('reports'); var list = $('<ul id="current" class="issue-list-a tab open"></ul>'); |