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

Regular.isRegular is not defined #3

Closed
leeluolee opened this issue May 9, 2017 · 1 comment
Closed

Regular.isRegular is not defined #3

leeluolee opened this issue May 9, 2017 · 1 comment
Labels

Comments

@leeluolee
Copy link
Member

低版本Regular没有这个API, 需要做判断.

if(!Regular.isRegular){
Regular.isRegular = function( Comp ){
return Comp.prototype instanceof Regular;
}
}

regularjs/regular#180

@leeluolee leeluolee added the bug label May 9, 2017
leeluolee added a commit that referenced this issue May 9, 2017
@zhuman90
Copy link

zhuman90 commented May 9, 2017

好的,谢谢啦

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

No branches or pull requests

2 participants