mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 10:22:30 +02:00
Add :style to NEWS
This commit is contained in:
1 parent
1bb07747c4
commit
af60f0ba86
2 files changed
+8
-3
No files matched your search
+3
-3
@@ -182,11 +182,11 @@ var keys = {};
|
||||
var observers = {};
|
||||
|
||||
var storage = {
|
||||
newObject: function newObject(key, constructor, store, type)
|
||||
newObject: function newObject(key, constructor, store, type, reload)
|
||||
{
|
||||
if (!(key in keys))
|
||||
if (!(key in keys) || reload)
|
||||
{
|
||||
if (key in this)
|
||||
if (key in this && !reload)
|
||||
throw Error;
|
||||
keys[key] = new constructor(key, store, loadPref(key, store, type || Object));
|
||||
this.__defineGetter__(key, function () keys[key]);
|
||||
|
||||
Reference in new issue
Block a user