Skip to content

Commit e5fab45

Browse files
committed
Fix event firing issue (backported from preact-worker-demo). /cc @KrofDrakula
1 parent 78addb9 commit e5fab45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/undom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export default function undom() {
132132
c = event.cancelable,
133133
l, i;
134134
do {
135-
l = t.__handlers[toLower(event.type)];
135+
l = t.__handlers && t.__handlers[toLower(event.type)];
136136
if (l) for (i=l.length; i--; ) {
137137
if ((l[i].call(t, event)===false || event._end) && c) break;
138138
}

0 commit comments

Comments
 (0)