View Full Version : [INFOREQ] addrecords with buffer. 2nd parameter contains 1 record after multiple adding

20 Nov 2012, 3:56 AM
Sorry, not going to fill out one of the lengthy forms as I don't feel it's needed or have the time but:

Sencha Touch 2.1.0

Second parameter is 'records' which I quote from the documentation: "The Model instances that were added".

If you add a buffer to the event binding (for example 3 seconds), add a couple of records inside this buffer time. You will only get 1 record passed through as the 'records' parameter.

Work around: var records = store.getNewRecords();

20 Nov 2012, 6:22 AM
Are you adding them one at a time or an array?

20 Nov 2012, 6:27 AM
I have buttons on a page (with a single record on them).

I'm clicking them and when I stop clicking, the buffered 'addrecords' event is called.

So they're getting added singularly and after the buffered time when I stop adding, I expect records to contain an array of records