1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-25 23:15:45 +01:00

Get rid of absurd strict JS warnings.

This commit is contained in:
Kris Maglione
2009-11-14 04:38:36 -05:00
parent dcedb36e9b
commit 91fd0e1169
29 changed files with 292 additions and 285 deletions

View File

@@ -335,12 +335,13 @@ const Bookmarks = Module("bookmarks", {
catch (e) {}
if (!callback)
return results;
callback(results);
return callback(results);
}
let resp = util.httpGet(queryURI, callback && process);
if (!callback)
return process(resp);
return null;
},
// TODO: add filtering
@@ -440,6 +441,7 @@ const Bookmarks = Module("bookmarks", {
liberator.echoerr("E283: No bookmarks matching tags: \"" + tags + "\"");
else
liberator.echoerr("No bookmarks set");
return null;
}
}, {
}, {
@@ -644,6 +646,7 @@ const Bookmarks = Module("bookmarks", {
item.url = decodeURIComponent(query.replace(/#.*/, ""));
return item;
}
return null;
}).filter(util.identity);
};
});