(js) Improve addressbook create/delete handling

This commit is contained in:
Francis Lachapelle committed 2015-12-14 12:19:15 -05:00
1 parent bbb9f31c29
commit 558795327e
3 files changed
+13 -11

No files matched your search

@@ -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;
};