improved functional test layout, and started work on drawBufferFunc support

This commit is contained in:
Eric Rowell
2012-11-14 21:55:16 -08:00
parent bb78dacddf
commit 9f80402dd1
5 changed files with 117 additions and 82 deletions

View File

@@ -19,7 +19,11 @@ Kinetic.Sprite.prototype = {
});
this.shapeType = "Sprite";
config.drawFunc = this.drawFunc;
config.drawBufferFunc = this.drawBufferFunc;
if(!config.drawBufferFunc) {
config.drawBufferFunc = this.drawBufferFunc;
}
// call super constructor
Kinetic.Shape.call(this, config);
this.anim = new Kinetic.Animation();