Skip to content

Commit

Permalink
fix: remove "m-else" from directives list when compiling
Browse files Browse the repository at this point in the history
- "m-if" already handles "m-else"
  • Loading branch information
kbrsh committed Sep 27, 2017
1 parent 74fbbea commit 3e931b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dist/moon.js
Original file line number Diff line number Diff line change
Expand Up @@ -1517,6 +1517,8 @@
var attrs = child.props.attrs;

if(attrs["m-else"] !== undefined) {
delete attrs["m-else"];

data.elseNode = [i, child];
children.splice(i, 1);

Expand Down
Loading

0 comments on commit 3e931b5

Please sign in to comment.