dbmanager delete item

This commit is contained in:
Mo Bitar
2017-01-12 20:29:16 -06:00
parent 3ffc9ee667
commit d615d1aebe
5 changed files with 13 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
class ModelManager {
constructor() {
constructor(dbManager) {
this.dbManager = dbManager;
this.notes = [];
this.tags = [];
this.itemSyncObservers = [];
@@ -217,6 +218,8 @@ class ModelManager {
} else if(item.content_type == "Extension") {
_.pull(this._extensions, item);
}
this.dbManager.deleteItem(item);
}
/*