fix($timeout): clean deferreds immediately after callback exec/cancel
Make sure $timeout callbacks are forgotten about immediately after execution or cancellation. Previously when passing invokeApply=false, the cleanup used $q and so would be pending until the next $digest was triggered. This does not make a large functional difference, but can be very visible when looking at memory consumption of an app or debugging around the $$asyncQueue - these callbacks can have a big retaining tree.
A
Andy Gurden committed
920a3804136d49cdaf7bc2712f5832bc50409dc9
Parent: f757f86
Committed by Vojta Jina <vojta.jina@gmail.com>
on 8/14/2013, 9:34:06 PM