Add Path#closed example.

This commit is contained in:
Jonathan Puckey 2011-06-03 23:04:18 +02:00
parent 8bb8baa199
commit 083099a919

View file

@ -166,6 +166,16 @@ var Path = this.Path = PathItem.extend({
*
* @type Boolean
* @bean
*
* @example
* var myPath = new Path();
* myPath.strokeColor = 'black';
* myPath.add(new Point(40, 90));
* myPath.add(new Point(90, 40));
* myPath.add(new Point(140, 90));
*
* // Close the path:
* myPath.closed = true;
*/
getClosed: function() {
return this._closed;