(fix) Resolve addressbook before rendering view

This commit is contained in:
Francis Lachapelle
2015-07-20 15:33:51 -04:00
parent cdd449fec9
commit dfb750caf4
2 changed files with 3 additions and 5 deletions
@@ -420,10 +420,8 @@
AddressBook.prototype.$unwrap = function(futureAddressBookData) {
var _this = this;
// Expose the promise
this.$futureAddressBookData = futureAddressBookData;
// Resolve the promise
this.$futureAddressBookData.then(function(data) {
// Expose and sesolve the promise
this.$futureAddressBookData = futureAddressBookData.then(function(data) {
return AddressBook.$timeout(function() {
// Extend AddressBook instance from data of addressbooks list.
// Will inherit attributes such as isEditable and isRemote.