mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Fix Path.Line() constructor with 4 arguments.
This commit is contained in:
parent
e089e080c2
commit
ecbd52cdf7
1 changed files with 2 additions and 2 deletions
|
@ -15,8 +15,8 @@ Path.inject({ statics: new function() {
|
||||||
path._add(new Segment(arguments[0]));
|
path._add(new Segment(arguments[0]));
|
||||||
path._add(new Segment(arguments[1]));
|
path._add(new Segment(arguments[1]));
|
||||||
} else if (arguments.length == 4) {
|
} else if (arguments.length == 4) {
|
||||||
path._add(Segment.read(arguments[0], arguments[1]));
|
path._add(new Segment(arguments[0], arguments[1]));
|
||||||
path._add(Segment.read(arguments[2], arguments[3]));
|
path._add(new Segment(arguments[2], arguments[3]));
|
||||||
}
|
}
|
||||||
return path;
|
return path;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue