10 Commits

Author SHA1 Message Date
437e220c42 Zone-aware versions of certain APIs: setTimeout/setInterval mostly.
Instead of waiting for zone.js to patch our global declarations and break
the lazy module loading optimizations there, we'll let it patch stuff
before "globals" gets loaded, so that it doesn't touch (and break) the code
there.

Of course, that requires that functions that need legit patching need to be
made aware of the zone, or get patched later on. The global.zonedCallback
function makes that easy, and we use it for setTimeout/setInterval.
2016-03-31 18:29:42 +03:00
a89489512f Fix #817 2015-09-30 14:36:05 +03:00
aec5e8b468 Fix timer id generation -- we shouldn't have clashing id's anymore. 2015-07-14 14:49:47 +03:00
cc829e0152 definitions fixed 2015-03-03 10:34:40 +02:00
599bc7c10e timer tests and snippets added 2014-05-16 16:16:29 +03:00
c2a18eb857 setTimeout and setInterval are now more TypeScript like 2014-05-14 16:01:03 +03:00
8c8bbd6bb0 setTimeout and setInternval second argument type no longer checked if it is number 2014-05-14 15:57:16 +03:00
8b2c56a346 default argument value added for setTimeout and setInterval 2014-05-14 15:48:05 +03:00
4cba61c40d Second parameter (milliseconds) is now optional for setTimeout and setInterval 2014-05-12 11:34:50 +03:00
db1681a88e timer moved in separate module 2014-05-10 16:34:23 +03:00