Skip to content

Commit

Permalink
fix: replace hardcoded .parentNode with abstract ops, fix vuejs#8713
Browse files Browse the repository at this point in the history
  • Loading branch information
Justineo committed Aug 27, 2018
1 parent d280937 commit 7019d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/vdom/patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export function createPatchFunction (backend) {
function insert (parent, elm, ref) {
if (isDef(parent)) {
if (isDef(ref)) {
if (ref.parentNode === parent) {
if (nodeOps.parentNode(ref) === parent) {
nodeOps.insertBefore(parent, elm, ref)
}
} else {
Expand Down

0 comments on commit 7019d4c

Please sign in to comment.