factor methods now also build overloaded attr functions. i.e. instead of setScaleX(5), you can use scaleX(5). Instead of getScaleX(), you can use scaleX()

This commit is contained in:
Eric Rowell
2013-12-13 11:02:07 -08:00
parent c7d7fef80a
commit fe7b4daebc
18 changed files with 167 additions and 32 deletions

View File

@@ -174,8 +174,9 @@
___init: function(config) {
Kinetic.Shape.call(this, config);
this.className = 'Tag';
this.setDrawFunc(this._drawFunc);
},
drawFunc: function(context) {
_drawFunc: function(context) {
var width = this.getWidth(),
height = this.getHeight(),
pointerDirection = this.getPointerDirection(),