zouzhenxing

Results 2 issues of zouzhenxing

当网速比较卡时,如果使用promise,则有可能导至两个模板同时渲染到容器中。解决办法如下: ![image](https://cloud.githubusercontent.com/assets/16457664/20912642/c568e740-bbab-11e6-891e-59c430d01e1c.png) 将leave(hasChildren);方法移到promise方法完成后再调用。

``` if (typeof route.bind === 'function'/* && !route.__isBind*/) { route.bind.call(node); //route.__isBind = true; } ``` 修改成 ``` if (typeof route.bind === 'function'/* && !route.__isBind*/) { route.bind(node); //route.__isBind = true; }...