Merge remote branch 'origin/master'

This commit is contained in:
Jonathan Puckey 2011-05-04 18:37:08 +01:00
commit c309d3248e
2 changed files with 3 additions and 6 deletions

View file

@ -699,11 +699,7 @@ var Item = this.Item = Base.extend({
ctx.stroke();
for (var i = 0; i < 8; i++) {
ctx.beginPath();
ctx.rect(
Math.round(coords[i]) - 2,
Math.round(coords[++i]) - 2,
4, 4
);
ctx.rect(coords[i] - 2, coords[++i] - 2, 4, 4);
ctx.fill();
}
},

View file

@ -159,7 +159,8 @@ var PaperScript = new function() {
} catch (e) {
}
// Automatically redraw document at the end.
doc && doc.redraw();
if (doc)
doc.redraw();
return res;
}
}