1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-19 14:47:59 +01:00

Localitize deprecation warnings.

This commit is contained in:
Kris Maglione
2011-03-14 19:22:43 -04:00
parent 9c0180a8a3
commit 4cfdba9223
7 changed files with 88 additions and 38 deletions

View File

@@ -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);