Skip to content

Commit 6d7b3fa

Browse files
committed
Add info about workaround
1 parent f14c6ca commit 6d7b3fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/decorators/customEvent.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const customListeners = {
4040
const map = target[this.id]
4141
map[event] = listener
4242
} else {
43+
// this is workaround for WeakMap, which is not supported in older browsers, such as IE
4344
Object.defineProperty(target, this.id, {
4445
configurable: true,
4546
value: { [event]: listener }

0 commit comments

Comments
 (0)