For the newest documentation on the pending queue and APIs offered by the Web Platform click here
non-deterministic initialisation
...
Asynchronously stores a new model in the pending queue. A unique UUID will be assigned to that entry in the pending queue while it is being stored.
Code Block | ||
---|---|---|
| ||
var pendingRecord = BMP.BIC.pending.create({ /* see Data Model */ }); pendingRecord.once('change', function () { // pendingRecord.id is now available, indicating that the record is saved }); |
BMP.BIC.pending.processQueue = function ()
Processes each PendingItem in the queue. If the status
property is Pending
, then an attempt will be made to submit the entry to the server. All other values of status
cause the PendingItem to be skipped.