Skip to content
This repository has been archived by the owner on Sep 20, 2019. It is now read-only.

Fixes #190 #213

Merged
merged 5 commits into from
Mar 6, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion shadydom.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shadydom.min.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/patch-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,9 @@ export function addEventListener(type, fnOrObj, optionsOrCapture) {
};
// Store the wrapper information.
fnOrObj[eventWrappersName].push({
node: this,
// note: use target here which is either a shadowRoot
// (when the host element is proxy'ing the event) or this element
node: target,
type: type,
capture: capture,
once: once,
Expand Down
Loading