Skip to content

Commit

Permalink
fixed 1.4.6 only first props bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcaufy committed Mar 15, 2017
1 parent 84f9f96 commit fde27bf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/wepy-cli/src/compile-wpy.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,10 @@ export default {
let comid = util.getComId(elem);
[].slice.call(elem.attributes || []).forEach((attr) => {
if (attr.name !== 'id' && attr.name !== 'path') {
if (!props[comid]) {
if (!props[comid])
props[comid] = {};
if (['hidden', 'wx:if', 'wx:elif', 'wx:else'].indexOf(attr.name) === -1) {
props[comid][attr.name] = attr.value;
}
if (['hidden', 'wx:if', 'wx:elif', 'wx:else'].indexOf(attr.name) === -1) {
props[comid][attr.name] = attr.value;
}
}
});
Expand Down

1 comment on commit fde27bf

@Gcaufy
Copy link
Collaborator Author

@Gcaufy Gcaufy commented on fde27bf Mar 15, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#68

Please sign in to comment.