Fix Path.Line() constructor with 4 arguments.

This commit is contained in:
Jürg Lehni 2011-03-03 13:10:29 +00:00
parent e089e080c2
commit ecbd52cdf7

View file

@ -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;
}, },