]> git.donarmstrong.com Git - dactyl.git/blobdiff - common/modules/cache.jsm
Import r6976 from upstream hg supporting Firefox up to 25.*
[dactyl.git] / common / modules / cache.jsm
index e25bd4263ecc839f87e6e062430b8e77987db5e0..3f8e2f1ce75d4436d6d199b1d0e14b266949041d 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011-2012 Kris Maglione <maglione.k@gmail.com>
+// Copyright (c) 2011-2013 Kris Maglione <maglione.k@gmail.com>
 //
 // 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)