regularjs / regular-state

regular router based on stateman
http://regularjs.github.io/regular-state/
MIT License
13 stars 9 forks source link

Regular.isRegular is not defined #3

Closed leeluolee closed 7 years ago

leeluolee commented 7 years ago

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

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

https://github.com/regularjs/regular/issues/180

zhuman90 commented 7 years ago

好的,谢谢啦