1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-08 01:05:46 +01:00

Add toJSON method to lazy localized strings.

This commit is contained in:
Kris Maglione
2015-05-07 13:54:18 -07:00
parent 18015e3750
commit 29228527c2
3 changed files with 8 additions and 7 deletions

View File

@@ -30,7 +30,8 @@ var Messages = Module("messages", {
return self.get(message);
}),
valueOf: function valueOf() this.message,
toString: function toString() this.message
toString: function toString() this.message,
toJSON: function toJSON() this.message
});
},