Misc updates

This commit is contained in:
Mo Bitar
2018-07-11 09:36:47 -05:00
parent b0850ed3e3
commit 7fc90ffd66
12 changed files with 62 additions and 55 deletions

View File

@@ -30,6 +30,14 @@ class ModelManager extends SFModelManager {
this.components.length = 0;
}
removeAllItemsFromMemory() {
for(var item of this.items) {
item.deleted = true;
}
this.notifySyncObserversOfModels(this.items);
this.handleSignout();
}
findOrCreateTagByTitle(title) {
var tag = _.find(this.tags, {title: title})
if(!tag) {