mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-21 07:51:30 +02:00
Formatting fixes.
This commit is contained in:
Regular → Executable
+5
-5
@@ -22,7 +22,7 @@ function Timer(minInterval, maxInterval, callback)
|
||||
{
|
||||
timer.cancel();
|
||||
this.latest = 0;
|
||||
/* minInterval is the time between the completion of the command and the next firing. */
|
||||
// minInterval is the time between the completion of the command and the next firing
|
||||
this.doneAt = Date.now() + minInterval;
|
||||
|
||||
try
|
||||
@@ -145,7 +145,7 @@ function loadPref(name, store, type)
|
||||
if (pref)
|
||||
{
|
||||
prefService.clearUserPref(name);
|
||||
savePref({ name: name, store: true, serial: pref })
|
||||
savePref({ name: name, store: true, serial: pref });
|
||||
}
|
||||
if (result instanceof type)
|
||||
return result;
|
||||
@@ -161,8 +161,8 @@ function savePref(obj)
|
||||
|
||||
var prototype = {
|
||||
OPTIONS: ["privateData"],
|
||||
fireEvent: function (event, arg) { storage.fireEvent(this.name, event, arg) },
|
||||
save: function () { savePref(this) },
|
||||
fireEvent: function (event, arg) { storage.fireEvent(this.name, event, arg); },
|
||||
save: function () { savePref(this); },
|
||||
init: function (name, store, data, options)
|
||||
{
|
||||
this.__defineGetter__("store", function () store);
|
||||
@@ -345,7 +345,7 @@ var storage = {
|
||||
{
|
||||
for (let [key, ary] in Iterator(observers))
|
||||
{
|
||||
observers[key] = ary = ary.filter(function (o) o.callback.get() && (!o.ref || o.ref.get() && o.ref.get().liberatorStorageRefs))
|
||||
observers[key] = ary = ary.filter(function (o) o.callback.get() && (!o.ref || o.ref.get() && o.ref.get().liberatorStorageRefs));
|
||||
if (!ary.length)
|
||||
delete observers[key];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user