mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 15:30:50 -05:00
Update comment a bit to make code more clear.
This commit is contained in:
parent
6e0e31480a
commit
813b70c70b
1 changed files with 3 additions and 3 deletions
|
@ -22,9 +22,9 @@ var CompoundPath = this.CompoundPath = PathItem.extend({
|
||||||
if (items) {
|
if (items) {
|
||||||
for (var i = 0, l = items.length; i < l; i++) {
|
for (var i = 0, l = items.length; i < l; i++) {
|
||||||
var item = items[i];
|
var item = items[i];
|
||||||
// All paths except for the first one are reversed when
|
// All paths except for the top one (last one in list) are
|
||||||
// creating a compound path, so that they draw holes.
|
// reversed when creating a compound path, so that they draw
|
||||||
// When keepDirection is set to true, child paths aren't reversed.
|
// holes. When keepDirection is set, children aren't reversed.
|
||||||
if (!keepDirection && i != l - 1)
|
if (!keepDirection && i != l - 1)
|
||||||
item.reverse();
|
item.reverse();
|
||||||
this.appendTop(items[i]);
|
this.appendTop(items[i]);
|
||||||
|
|
Loading…
Reference in a new issue