fixed up Ring shape init method because the drawFunc API slightly changed

This commit is contained in:
Eric Rowell
2013-12-13 11:15:29 -08:00
parent 9e05e81f50
commit 9accc00cf3
2 changed files with 4 additions and 2 deletions

View File

@@ -32,8 +32,9 @@
// call super constructor
Kinetic.Shape.call(this, config);
this.className = 'Ring';
this.setDrawFunc(this._drawFunc);
},
drawFunc: function(context) {
_drawFunc: function(context) {
context.beginPath();
context.arc(0, 0, this.getInnerRadius(), 0, PIx2, false);
context.moveTo(this.getOuterRadius(), 0);