Do not use short-forms and syntax magic in core API.

This commit is contained in:
Jürg Lehni 2011-05-03 09:34:07 +01:00
parent 728bf0441c
commit 49645f8a0d

View file

@ -733,7 +733,7 @@ var Item = this.Item = Base.extend({
// Floor the offset and ceil the size, so we don't cut off any
// antialiased pixels when drawing onto the temporary canvas.
var itemOffset = bounds.getTopLeft().floor(),
size = bounds.getSize().ceil().add(1, 1);
size = bounds.getSize().ceil().add(new Size(1, 1));
tempCanvas = CanvasProvider.getCanvas(size);
// Save the parent context, so we can draw onto it later