开发者

Sencha Touch ResumeEvents is a catastrophe

开发者 https://www.devze.com 2023-03-10 01:24 出处:网络
I\'m using Sencha\'s Ext.data.Store to hold some items.Right now they come from an xml webservice but that will change to a JSON query.After adding 500 items calling ResumeEvents on the Store can take

I'm using Sencha's Ext.data.Store to hold some items. Right now they come from an xml webservice but that will change to a JSON query. After adding 500 items calling ResumeEvents on the Store can take 20 seconds! If I comment the Suspend and ResumeEvents from my code it runs faster.

What gives? 开发者_如何学JAVADoes the library not combine multiple event notifications, or does is save all of them to send when you call ResumeEvents?

This is not good.

Thanks, Gerry


Try setting the suspendEvents parameter to false to prevent the queuing up of events upon resumeEvents.

myApp.myView.suspendEvents(false);

This is the description of the parameter in the Sencha docs:

queueSuspended : Boolean

Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events;

0

精彩评论

暂无评论...
验证码 换一张
取 消