X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=common%2Fmodules%2Fcache.jsm;fp=common%2Fmodules%2Fcache.jsm;h=3f8e2f1ce75d4436d6d199b1d0e14b266949041d;hb=205a9e35484fed6fc69161897a59f51110ba708d;hp=e25bd4263ecc839f87e6e062430b8e77987db5e0;hpb=ea765b42ac553c79ee79137be7b70fec68edb560;p=dactyl.git diff --git a/common/modules/cache.jsm b/common/modules/cache.jsm index e25bd42..3f8e2f1 100644 --- a/common/modules/cache.jsm +++ b/common/modules/cache.jsm @@ -1,4 +1,4 @@ -// Copyright (c) 2011-2012 Kris Maglione +// Copyright (c) 2011-2013 Kris Maglione // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. @@ -167,7 +167,7 @@ var Cache = Module("Cache", XPCOM(Ci.nsIRequestObserver), { }, force: function force(name, localOnly) { - util.waitFor(function () !this.inQueue, this); + util.waitFor(() => !this.inQueue); if (this.cacheReader && this.cacheReader.hasEntry(name)) { return this.parse(File.readStream( @@ -219,7 +219,7 @@ var Cache = Module("Cache", XPCOM(Ci.nsIRequestObserver), { _has: function _has(name) Set.has(this.providers, name) || set.has(this.cache, name), has: function has(name) [this.globalProviders, this.cache, this.localProviders] - .some(function (obj) Set.has(obj, name)), + .some(obj => Set.has(obj, name)), register: function register(name, callback, self) { if (this.isLocal)