mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-29 14:35:46 +01:00
Localitize deprecation warnings.
This commit is contained in:
@@ -39,7 +39,7 @@ var Map = Class("Map", {
|
||||
Object.freeze(this.modes);
|
||||
|
||||
if (extraInfo)
|
||||
update(this, extraInfo);
|
||||
this.update(extraInfo);
|
||||
},
|
||||
|
||||
name: Class.memoize(function () this.names[0]),
|
||||
|
||||
@@ -438,10 +438,9 @@ var Modes = Module("modes", {
|
||||
util.assert(options.bases.every(function (m) m instanceof this, this.constructor),
|
||||
_("mode.invalidBases"), true);
|
||||
|
||||
this.description = options.description || name;
|
||||
|
||||
update(this, {
|
||||
this.update({
|
||||
id: 1 << Modes.Mode._id++,
|
||||
description: name,
|
||||
name: name,
|
||||
params: params || {}
|
||||
}, options);
|
||||
|
||||
Reference in New Issue
Block a user