Skip to content

Commit 499b835

Browse files
committed
fix weex test case
1 parent 39a231d commit 499b835

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ export function createComment (text) {
1919
}
2020

2121
export function insertBefore (node, target, before) {
22+
if (!before) {
23+
return appendChild(node, target)
24+
}
2225
if (target.nodeType === 3) {
2326
if (node.type === 'text') {
2427
node.setAttr('value', target.text)

0 commit comments

Comments
 (0)