Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaeb2efa

Browse files
Hanks10100yyx990803
authored andcommitted
[weex] fix the removeChild logic for text node (vuejs#4626)
1 parentd80eff8 commitaeb2efa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/platforms/weex/runtime/node-ops.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ export function insertBefore (node, target, before) {
3434
}
3535

3636
exportfunctionremoveChild(node,child){
37-
if(node.nodeType===3){
38-
node.parentNode.setAttr('value','')
37+
if(child.nodeType===3){
38+
node.setAttr('value','')
3939
return
4040
}
4141
node.removeChild(child)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp