(js) Improve addressbook create/delete handling

This commit is contained in:
Francis Lachapelle
2015-12-14 12:19:15 -05:00
parent bbb9f31c29
commit 558795327e
3 changed files with 13 additions and 11 deletions
@@ -423,9 +423,7 @@
var i = _.indexOf(_.pluck(list, 'id'), _this.id);
list.splice(i, 1);
d.resolve();
}, function(data, status) {
d.reject(data);
});
}, d.reject);
return d.promise;
};