(fix) Resolve addressbook before rendering view

This commit is contained in:
Francis Lachapelle committed 2015-07-20 15:33:51 -04:00
1 parent cdd449fec9
commit dfb750caf4
2 files changed
+3 -5

No files matched your search

@@ -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.