diff --git a/src/path/CompoundPath.js b/src/path/CompoundPath.js index f9689bce..9334d92d 100644 --- a/src/path/CompoundPath.js +++ b/src/path/CompoundPath.js @@ -83,7 +83,7 @@ var CompoundPath = this.CompoundPath = PathItem.extend({ } var fields = { - moveTo: function() { + moveTo: function(point) { var path = new Path(); this.appendTop(path); path.moveTo.apply(path, arguments); diff --git a/src/path/Path.js b/src/path/Path.js index 48903313..fd570ec3 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -762,14 +762,14 @@ var Path = this.Path = PathItem.extend({ * execute a moveTo() command first. */ return { - moveTo: function() { + moveTo: function(point) { // Let's not be picky about calling moveTo() when not at the // beginning of a path, just bail out: if (!this._segments.length) this._add([ new Segment(Point.read(arguments)) ]); }, - lineTo: function() { + lineTo: function(point) { // Let's not be picky about calling moveTo() first: this._add([ new Segment(Point.read(arguments)) ]); },