mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
Don't use cached event listener length in node._fire because changing shape attribures in a event could remove kinetic event handler from the array which willl cause 'hander of undefined' error.
This commit is contained in:
parent
868b2b1a0d
commit
809b8b82e9
@ -1211,8 +1211,7 @@
|
||||
len, i;
|
||||
|
||||
if (events) {
|
||||
len = events.length;
|
||||
for(i = 0; i < len; i++) {
|
||||
for(i = 0; i < events.length; i++) {
|
||||
events[i].handler.call(this, evt);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user