mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-18 03:42:30 +02:00
Get rid of absurd strict JS warnings.
This commit is contained in:
1 parent
dcedb36e9b
commit
91fd0e1169
29 files changed
+292
-285
No files matched your search
@@ -201,7 +201,7 @@ function ObjectStore(name, store, load, options) {
|
||||
return ret;
|
||||
};
|
||||
|
||||
this.get = function get(val) object[val];
|
||||
this.get = function get(val, default_) val in object ? object[val] : default_;
|
||||
|
||||
this.clear = function () {
|
||||
object = {};
|
||||
@@ -334,8 +334,9 @@ var storage = {
|
||||
return;
|
||||
this.removeDeadObservers();
|
||||
// Safe, since we have our own Array object here.
|
||||
for each (let observer in observers[key])
|
||||
observer.callback.get()(key, event, arg);
|
||||
if (key in observers)
|
||||
for each (let observer in observers[key])
|
||||
observer.callback.get()(key, event, arg);
|
||||
timers[key].tell();
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user