Skip to content
This repository was archived by the owner on Aug 9, 2018. It is now read-only.

Commit 5dca21a

Browse files
Always fire the "no open requests" callback asynchronously.
If it's fired synchronously then sometimes it fires in the middle of a digest cycle and causes the response to be emitted in that context, preventing us from completing the digest cycle before we return.
1 parent 4c519b5 commit 5dca21a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ngoverrides.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ function registerModule(context) {
253253
doneCallbacks.push(cb);
254254
}
255255
else {
256-
cb();
256+
setTimeout(cb, 1);
257257
}
258258
};
259259

0 commit comments

Comments
 (0)