Skip to content

Commit

Permalink
refactor: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 19, 2017
1 parent 5254ee3 commit 08660e8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/platforms/weex/compiler/modules/recycle-list/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ function postTransformNode (el: ASTElement) {
function genText (node) {
const value = node.type === 3
? node.text
: node.tokens.length === 1
? node.tokens[0]
: node.tokens
: node.type === 2
? node.tokens.length === 1
? node.tokens[0]
: node.tokens
: ''
return JSON.stringify(value)
}

Expand Down

0 comments on commit 08660e8

Please sign in to comment.