From 681d5537b34b6aaef5e5a790ed6116e942631d67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 4 May 2016 18:06:18 -0700 Subject: [PATCH] Always pass on dictionary object in _serialize() It is used to determine if ojects can be serialized in compact form. --- src/basic/Matrix.js | 4 ++-- src/path/Curve.js | 4 ++-- src/path/Segment.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/basic/Matrix.js b/src/basic/Matrix.js index fb9a592d..18309521 100644 --- a/src/basic/Matrix.js +++ b/src/basic/Matrix.js @@ -97,8 +97,8 @@ var Matrix = Base.extend(/** @lends Matrix# */{ return this; }, - _serialize: function(options) { - return Base.serialize(this.getValues(), options); + _serialize: function(options, dictionary) { + return Base.serialize(this.getValues(), options, true, dictionary); }, _changed: function() { diff --git a/src/path/Curve.js b/src/path/Curve.js index ee3ef15c..f2386f62 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -118,13 +118,13 @@ var Curve = Base.extend(/** @lends Curve# */{ this._segment2 = seg2 || new Segment(point2, handle2, null); }, - _serialize: function(options) { + _serialize: function(options, dictionary) { // If it has no handles, only serialize points, otherwise handles too. return Base.serialize(this.hasHandles() ? [this.getPoint1(), this.getHandle1(), this.getHandle2(), this.getPoint2()] : [this.getPoint1(), this.getPoint2()], - options, true); + options, true, dictionary); }, _changed: function() { diff --git a/src/path/Segment.js b/src/path/Segment.js index e38c3338..835dee51 100644 --- a/src/path/Segment.js +++ b/src/path/Segment.js @@ -149,7 +149,7 @@ var Segment = Base.extend(/** @lends Segment# */{ this.setSelection(selection); }, - _serialize: function(options) { + _serialize: function(options, dictionary) { // If it is has no handles, only serialize point, otherwise handles too. var point = this._point, selection = this._selection, @@ -158,7 +158,7 @@ var Segment = Base.extend(/** @lends Segment# */{ : point; if (selection) obj.push(selection); - return Base.serialize(obj, options, true); + return Base.serialize(obj, options, true, dictionary); }, _changed: function(point) {