summaryrefslogtreecommitdiff
path: root/js/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-03-08 18:33:42 +0300
committerAndrew Dolgov <[email protected]>2018-03-08 18:33:42 +0300
commit3009ecc44f4a2cebe0d918f6a993ce0cab0fbe81 (patch)
tree1ba72d41dfb8870a7635629790813e349151d800 /js/tt-rss.js
parentc9a5e5aa2875008931f4f75ba7d01fd5439cd0ea (diff)
initial for JS strict mode
Diffstat (limited to 'js/tt-rss.js')
-rw-r--r--js/tt-rss.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/tt-rss.js b/js/tt-rss.js
index 4df1b04ee..d5d31cfed 100644
--- a/js/tt-rss.js
+++ b/js/tt-rss.js
@@ -628,7 +628,7 @@ function init_second_stage() {
var hotkeys = getInitParam("hotkeys");
var tmp = [];
- for (sequence in hotkeys[1]) {
+ for (var sequence in hotkeys[1]) {
filtered = sequence.replace(/\|.*$/, "");
tmp[filtered] = hotkeys[1][sequence];
}
@@ -752,7 +752,7 @@ function parse_runtime_info(data) {
//console.log("parsing runtime info...");
- for (k in data) {
+ for (var k in data) {
var v = data[k];
// console.log("RI: " + k + " => " + v);
@@ -899,7 +899,7 @@ function hotkey_handler(e) {
var hotkey_action = false;
var hotkeys = getInitParam("hotkeys");
- for (sequence in hotkeys[1]) {
+ for (var sequence in hotkeys[1]) {
if (sequence == hotkey) {
hotkey_action = hotkeys[1][sequence];
break;
@@ -1076,11 +1076,11 @@ function update_random_feed() {
}
function hash_get(key) {
- kv = window.location.hash.substring(1).toQueryParams();
+ var kv = window.location.hash.substring(1).toQueryParams();
return kv[key];
}
function hash_set(key, value) {
- kv = window.location.hash.substring(1).toQueryParams();
+ var kv = window.location.hash.substring(1).toQueryParams();
kv[key] = value;
window.location.hash = $H(kv).toQueryString();
}