Skip to content

Commit

Permalink
fixed: make sure that the createExpression receives all its arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Aug 3, 2019
1 parent 0db40ee commit 6e3cb84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/generators/template/bindings/simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ function createTextNodeExpressions(sourceNode, sourceFile, sourceCode) {
node,
sourceFile,
sourceCode,
childrenNodes.indexOf(node)
childrenNodes.indexOf(node),
sourceNode
))
}

Expand Down
2 changes: 1 addition & 1 deletion src/generators/template/bindings/tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function createSlotsArray(sourceNode, sourceFile, sourceCode) {
function createBindingAttributes(sourceNode, selectorAttribute, sourceFile, sourceCode) {
return builders.arrayExpression([
...compose(
attributes => attributes.map(attribute => createExpression(attribute, sourceFile, sourceCode)),
attributes => attributes.map(attribute => createExpression(attribute, sourceFile, sourceCode, 0, sourceNode)),
attributes => getAttributesWithoutSelector(attributes, selectorAttribute), // eslint-disable-line
cleanAttributes
)(sourceNode)
Expand Down

0 comments on commit 6e3cb84

Please sign in to comment.