Skip to content
This repository was archived by the owner on Oct 26, 2021. It is now read-only.

Commit d6b1c17

Browse files
authored
Fix the ChildNode#after patching condition.
Currently, `ChildNode#after` is patched when a native version of `ChildNode#before` exists.
1 parent e193996 commit d6b1c17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Patch/Interface/ChildNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default function(internals, destination, builtIn) {
8282
Utilities.setPropertyUnchecked(destination, 'before', beforeAfterPatch(builtIn.before));
8383
}
8484

85-
if (builtIn.before !== undefined) {
85+
if (builtIn.after !== undefined) {
8686
Utilities.setPropertyUnchecked(destination, 'after', beforeAfterPatch(builtIn.after));
8787
}
8888

0 commit comments

Comments
 (0)