From: David Schoonover Date: Wed, 6 Jun 2012 12:47:55 +0000 (-0700) Subject: Strip out id from DataSet JSON before saving. X-Git-Url: http://git.less.ly:3516/?a=commitdiff_plain;h=f8d2ad52916107bca8e4b28a439df2311261f8b4;p=limn.git Strip out id from DataSet JSON before saving. --- diff --git a/lib/data/dataset-model.co b/lib/data/dataset-model.co index b96480b..e24a6aa 100644 --- a/lib/data/dataset-model.co +++ b/lib/data/dataset-model.co @@ -100,6 +100,12 @@ DataSet = exports.DataSet = BaseModel.extend do # {{{ DataSet.__super__.set.call this, values, opts + toJSON: -> + json = DataSet.__super__.toJSON ... + delete json.id + json + + /* * * * TimeSeriesData interface * * * {{{ */ /**