Skip to content

Commit

Permalink
Fix - return promise
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepugh committed Feb 2, 2014
1 parent 3ade8b6 commit 709a75a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions angularfire.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@
}
},
applyLocally);

return deferred.promise;
};

// Remove this object from the remote data. Calling this is the
Expand Down
2 changes: 1 addition & 1 deletion angularfire.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion tests/e2e/test_chat.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@
} else {
return currentCount+1;
}
});
}).then(function(snapshot) {
var val = snapshot.val();
}, function(err) {

});

$scope.message = "";
return promise;
Expand Down

0 comments on commit 709a75a

Please sign in to comment.