node.setPosition() now uses setX() and setY() which handles the transform cache

This commit is contained in:
Eric Rowell
2013-05-08 00:18:29 -07:00
parent 76a399bfc0
commit edc050067d

View File

@@ -353,8 +353,8 @@
*/
setPosition: function() {
var pos = Kinetic.Util._getXY([].slice.call(arguments));
this.setAttr(X, pos.x);
this.setAttr(Y, pos.y);
this.setX(pos.x);
this.setY(pos.y);
},
/**
* get node position relative to parent