From b44e796475239498a275d762377743e0e785f5ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 7 May 2011 16:10:38 +0100 Subject: [PATCH] Make sure getters dont return undefined but null instead. --- src/path/Segment.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/path/Segment.js b/src/path/Segment.js index d4145173..bbfdfe06 100644 --- a/src/path/Segment.js +++ b/src/path/Segment.js @@ -119,11 +119,11 @@ var Segment = this.Segment = Base.extend({ }, getPath: function() { - return this._path; + return this._path || null; }, getIndex: function() { - return this._index; + return this._index !== undefined ? this._index : null; }, getCurve: function() {