mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-11 03:35:46 +01:00
Add :style to NEWS
This commit is contained in:
@@ -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