Fix Path#closePath & CompoundPath#closePath.

This commit is contained in:
Jonathan Puckey 2011-04-11 23:33:08 +02:00
parent 499c421021
commit 2a9bbd3dee
2 changed files with 2 additions and 2 deletions

View file

@ -114,7 +114,7 @@ var CompoundPath = this.CompoundPath = PathItem.extend({
closePath: function() {
var path = getCurrentPath(this);
path.setClosed(true);
path.closed = true;
}
};

View file

@ -667,7 +667,7 @@ var Path = this.Path = PathItem.extend({
},
closePath: function() {
this.closed = ture;
this.closed = true;
}
};
}, new function() { // A dedicated scope for the tricky bounds calculations