Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestalmage committed Jun 23, 2015
1 parent 37ad35e commit 8e42912
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/FirebaseArray.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@
var def = $firebaseUtils.defer();
var created = function(snap, prevChild) {
waitForResolution(firebaseArray.$$added(snap, prevChild), function(rec) {
firebaseArray.$$process('child_added', rec, prevChild)
firebaseArray.$$process('child_added', rec, prevChild);
});
};
var updated = function(snap) {
Expand Down Expand Up @@ -663,7 +663,9 @@
function waitForResolution(maybePromise, callback) {
var promise = $q.when(maybePromise);
promise.then(function(result){
if (result) callback(result);
if (result) {
callback(result);
}
});
if (!isResolved) {
resolutionPromises.push(promise);
Expand Down

0 comments on commit 8e42912

Please sign in to comment.