Segment: document #toString and #selected.

This commit is contained in:
Jonathan Puckey 2011-05-29 16:57:48 +02:00
parent 6b63bb8a36
commit 742d7f809d

View file

@ -294,7 +294,11 @@ var Segment = this.Segment = Base.extend({
path._updateSelection(this);
},
// DOCS: Segment#selected
/**
* Specifies whether the {@link #point} of the segment is selected.
* @type Boolean
* @bean
*/
isSelected: function() {
return this._isSelected(this._point);
},
@ -318,6 +322,9 @@ var Segment = this.Segment = Base.extend({
return this._path ? !!this._path.removeSegment(this._index) : false;
},
/**
* @return {String} A string representation of the segment.
*/
toString: function() {
var parts = [ 'point: ' + this._point ];
if (!this._handleIn.isZero())