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

Dequote preference names in :set!

This commit is contained in:
Kris Maglione
2011-09-07 07:25:05 -04:00
parent 34e9e55489
commit 0064665749
4 changed files with 15 additions and 12 deletions

View File

@@ -422,7 +422,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
* @returns [string] The resulting strings.
*/
debrace: function debrace(pattern) {
let res = [];
var res = [];
if (isArray(pattern)) {
let rec = function rec(acc) {
@@ -1117,10 +1117,13 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
}),
/**
* Flushes the startup cache.
* Flushes the startup or jar cache.
*/
flushCache: function flushCache() {
services.observer.notifyObservers(null, "startupcache-invalidate", "");
flushCache: function flushCache(file) {
if (file)
services.observer.notifyObservers(file, "flush-cache-entry", "");
else
services.observer.notifyObservers(null, "startupcache-invalidate", "");
},
/**