mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Make sure getters dont return undefined but null instead.
This commit is contained in:
parent
79f55aa908
commit
b44e796475
1 changed files with 2 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue