mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-18 20:12:30 +02:00
Localitize deprecation warnings.
This commit is contained in:
1 parent
9c0180a8a3
commit
4cfdba9223
7 files changed
+88
-38
No files matched your search
@@ -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