Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

兼容repeat的for里面的变量为null,或者undefined这种非array类型的情况。 #353

Merged
merged 3 commits into from Aug 29, 2017

Conversation

xiaomingplus
Copy link

兼容repeat的for里面的变量为null,或者undefined这种非array类型的情况。

@coveralls
Copy link

Coverage Status

Coverage increased (+0.003%) to 97.297% when pulling f44862d on xiaomingplus:master into baaada4 on wepyjs:master.

repeatKey = Object.keys(binddata)[0];

if(typeof binddata === 'object'){
repeatKey = Object.keys(binddata)[0];
Copy link
Collaborator

Choose a reason for hiding this comment

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

如果binddata不是object, 那么repeatKey = undefined, 这样的话还是会影响到后面的setIndex方法。

@Gcaufy Gcaufy merged commit 2ca9bc4 into Tencent:master Aug 29, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.003%) to 97.297% when pulling f6a5dc3 on xiaomingplus:master into baaada4 on wepyjs:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants