Make sure getters dont return undefined but null instead.

This commit is contained in:
Jürg Lehni 2011-05-07 16:10:38 +01:00
parent 79f55aa908
commit b44e796475

View file

@ -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() {