Ember - Return a promise from beforeModel not working with Qunit

孤者浪人 提交于 2019-12-04 10:43:47

First off, adding the example is awesome, shows you tried, and makes it so much easier to debug.

In your case there is no need to advance readiness, and the problem is setTimeout lives outside of the run loop, but Ember.run.later doesn't and works the same!

http://plnkr.co/edit/lZKM4JBluQ27rcnfXlWS?p=preview

http://plnkr.co/edit/wFOCGQt3ahiuqi8el0rB?p=preview

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!