preparation work for new Renderer inheritance pattern

This commit is contained in:
Eric Rowell
2012-11-20 23:03:24 -08:00
parent c121e4b941
commit 144e95ad42
20 changed files with 323 additions and 269 deletions

View File

@@ -38,8 +38,7 @@ Kinetic.Sprite.prototype = {
context.beginPath();
context.rect(0, 0, f.width, f.height);
context.closePath();
this.fill(context);
this.stroke(context);
this.render(context);
if(this.attrs.image) {
@@ -58,8 +57,8 @@ Kinetic.Sprite.prototype = {
context.beginPath();
context.rect(0, 0, f.width, f.height);
context.closePath();
this.fill(context);
this.stroke(context);
this.fill(context, this.getFill(), null);
this.stroke(context, this.getStroke(), this.getStrokeWidth(), null);
},
/**
* start sprite animation