mirror of
https://github.com/konvajs/konva.git
synced 2025-09-19 02:37:59 +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;
|
len, i;
|
||||||
|
|
||||||
if (events) {
|
if (events) {
|
||||||
len = events.length;
|
for(i = 0; i < events.length; i++) {
|
||||||
for(i = 0; i < len; i++) {
|
|
||||||
events[i].handler.call(this, evt);
|
events[i].handler.call(this, evt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user