Minor tweaks.

This commit is contained in:
Jürg Lehni 2013-04-09 19:12:47 -07:00
parent b55d89acda
commit 0f19e72733
3 changed files with 4 additions and 2 deletions

View file

@ -169,7 +169,7 @@ var Group = this.Group = Item.extend(/** @lends Group# */{
if (clipItem) {
param.clip = true;
Item.draw(clipItem, ctx, param);
delete param.clip;
param.clip = false;
}
for (var i = 0, l = this._children.length; i < l; i++) {
var item = this._children[i];

View file

@ -197,7 +197,7 @@ var CompoundPath = this.CompoundPath = PathItem.extend(/** @lends CompoundPath#
var children = this._children,
style = this._style;
// Return early if the compound path doesn't have any children:
if (children.length == 0)
if (children.length === 0)
return;
ctx.beginPath();
param.compound = true;

View file

@ -296,6 +296,8 @@ var Project = this.Project = PaperScopeItem.extend(/** @lends Project# */{
matrix.applyToContext(ctx);
var param = {
offset: new Point(0, 0),
// A stack of concatenated matrices, to keep track of the current
// global matrix, since Canvas is not able tell us (yet).
transforms: [matrix]
};
for (var i = 0, l = this.layers.length; i < l; i++)