mirror of
https://github.com/konvajs/konva.git
synced 2025-12-17 09:54:56 +08:00
optimize change event. close #120
This commit is contained in:
@@ -1732,6 +1732,9 @@
|
||||
var oldVal;
|
||||
if(val !== undefined) {
|
||||
oldVal = this.attrs[key];
|
||||
if (oldVal === val) {
|
||||
return;
|
||||
}
|
||||
this.attrs[key] = val;
|
||||
this._fireChangeEvent(key, oldVal, val);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user