Remove all create() constructors for basic types since new constructors are now faster.

Woop!
This commit is contained in:
Jürg Lehni 2013-05-27 23:57:31 -07:00
parent 0f74c01f75
commit cd7db56249
18 changed files with 74 additions and 110 deletions

View file

@ -158,7 +158,7 @@ PathItem.inject(new function() {
if (segment.getPrevious()._invalid)
segment.setHandleIn(intersection
? intersection._handleIn
: Point.create(0, 0));
: new Point(0, 0));
do {
segment._visited = true;
if (segment._invalid && segment._intersection) {