Improve documentation.

This commit is contained in:
Jürg Lehni 2012-12-18 14:19:22 +01:00
parent c63e2c8f79
commit 4de5f30f72
2 changed files with 5 additions and 3 deletions

View file

@ -2128,7 +2128,7 @@ statics: {
}, },
/** /**
* Returns the rough bounding rectangle of the item that is shure to include * Returns the rough bounding rectangle of the item that is sure to include
* all of the drawing, including stroke width. * all of the drawing, including stroke width.
*/ */
getRoughBounds: function(segments, closed, style, matrix) { getRoughBounds: function(segments, closed, style, matrix) {

View file

@ -90,8 +90,10 @@ var Segment = this.Segment = Base.extend(/** @lends Segment# */{
_changed: function(point) { _changed: function(point) {
if (!this._path) if (!this._path)
return; return;
// Delegate changes to affected curves if they exist // Delegate changes to affected curves if they exist. Check _curves
var curve = this._path._curves && this.getCurve(), other; // first to make sure we're not creating it by calling this.getCurve().
var curve = this._path._curves && this.getCurve(),
other;
if (curve) { if (curve) {
curve._changed(); curve._changed();
// Get the other affected curve, which is the previous one for // Get the other affected curve, which is the previous one for