IgorMinar/angular.js — comment on commit 182f53705bdc1eaaac3dbd00f4aeefd90d261e67
File: src/Deferred.js line 46
By mhevery:

would it not be better to assign undefined to pending befere the for loop and then store the pending in temp, that way if the nextTick is sync, there is no risk that the callback would register more callbacks, or try to resolve it.