stage.draw() was triggering two canvas clears

This commit is contained in:
Eric Rowell
2013-07-28 00:31:44 -07:00
parent a3da0211d8
commit 966c690966

View File

@@ -65,19 +65,6 @@
return this;
},
draw: function() {
// clear children layers
var children = this.getChildren(),
len = children.length,
n, layer;
for(n = 0; n < len; n++) {
layer = children[n];
if (layer.getClearBeforeDraw()) {
layer.getCanvas().clear();
layer.getHitCanvas().clear();
}
}
Kinetic.Node.prototype.draw.call(this);
return this;
},