-
-
Save alexmipego/9fc936d9544ac2ae5168 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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