prevent synchronously loading of a store

纵饮孤独 提交于 2019-12-25 00:24:18

问题


I use Ext 4.1.1

I keep getting:

[Ext.Loader] Synchronously loading 'Eml.store.eml.EventSummary'; consider adding Ext.require('Eml.store.eml.EventSummary') above Ext.onReady

I added the store reference to my controller first, but the controller isn't loaded till later.. so I added it as 'requires' but no cigar.. Anyone got a clue what I'm doing wrong?


回答1:


Because it doesn't get evaluated during creation, it creates the store before it ever passes the object literal to the define().

Instead, specify the store in initComponent.



来源:https://stackoverflow.com/questions/12579694/prevent-synchronously-loading-of-a-store

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