mirror of
https://github.com/konvajs/konva.git
synced 2025-09-18 18:27:58 +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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user