Update comment a bit to make code more clear.

This commit is contained in:
Jürg Lehni 2011-05-15 17:59:57 +01:00
parent 6e0e31480a
commit 813b70c70b

View file

@ -22,9 +22,9 @@ var CompoundPath = this.CompoundPath = PathItem.extend({
if (items) {
for (var i = 0, l = items.length; i < l; i++) {
var item = items[i];
// All paths except for the first one are reversed when
// creating a compound path, so that they draw holes.
// When keepDirection is set to true, child paths aren't reversed.
// All paths except for the top one (last one in list) are
// reversed when creating a compound path, so that they draw
// holes. When keepDirection is set, children aren't reversed.
if (!keepDirection && i != l - 1)
item.reverse();
this.appendTop(items[i]);