Add options argument to #toJson() methods, and use to implement optional fractional digit precision control.

This commit is contained in:
Jürg Lehni 2013-02-12 14:57:54 -08:00
parent 053aa15ded
commit fdd15e675f
11 changed files with 40 additions and 28 deletions
src/basic

View file

@ -72,8 +72,8 @@ var Matrix = this.Matrix = Base.extend(/** @lends Matrix# */{
throw new Error('Unsupported matrix parameters');
},
_serialize: function() {
return this.getValues();
_serialize: function(options) {
return Base.serialize(this.getValues(), options);
},
/**