bug fix: ellipse radius change no longer fires duplicate attr change event

This commit is contained in:
Eric Rowell
2012-07-01 15:30:51 -07:00
parent 31566bff13
commit caae5a5155
4 changed files with 43 additions and 20 deletions

View File

@@ -56,10 +56,12 @@ Kinetic.Ellipse.prototype = {
if(go._isObject(radius)) {
return false;
}
var pos = go._getXY(radius);
this.setAttrs({
radius: pos
});
/*
* directly set radius attr to avoid
* duplicate attr change event
*/
this.attrs.radius = go._getXY(radius);
}
};
// extend Shape