fixed up Canvas type bug. The Canvas constructor can now also take an optional isBuffer param. If not defined, default value is scene

This commit is contained in:
Eric Rowell
2012-11-13 22:16:36 -08:00
parent 8486cb943f
commit 2115920ab8
6 changed files with 19 additions and 11 deletions

View File

@@ -732,7 +732,7 @@ Kinetic.Node.prototype = {
canvas = new Kinetic.Canvas(config.width, config.height);
}
else {
canvas = this.getStage().bufferCanvas;
canvas = this.getStage().canvas;
canvas.clear();
}