Skip to content

Instantly share code, notes, and snippets.

@alexmipego
Created October 9, 2014 17:23
Show Gist options
  • Save alexmipego/9fc936d9544ac2ae5168 to your computer and use it in GitHub Desktop.
Save alexmipego/9fc936d9544ac2ae5168 to your computer and use it in GitHub Desktop.
recordArray.update();
if (docChanges.deleted) {
var underscore = docChanges.id.indexOf('_'),
docType = docChanges.id.substring(0, underscore),
docId = docChanges.id.substring(docChanges.id.indexOf('_', underscore + 1) + 1);
var rec = recordArray.store.recordForId(docType, docId);
recordArray.removeRecord(rec);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment