mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
bug fix: ellipse radius change no longer fires duplicate attr change event
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user