Files
rosen-vladimirov 4be31e2b04 Add global __metadata function
When `emitDecoratorMetadata` compiler option is set to true in `tsconfig.json`, TypeScript generates some calls to `__metadata` function.
By default in our NativeScript TypeScript projects the `noEmitHelpers` option is set to true, so TypeScript compiler does not generate the `__metadata` function.
So the application crashes at runtime. Add the missing method, so we can have both `noEmitHelpers` and `emitDecoratorMetadata` set to true in `tsconfig.json`.
2016-02-18 09:39:41 +02:00
..
2016-02-18 09:39:41 +02:00
2014-05-12 14:25:03 +03:00

Globals module for defining functions part of the global context - you need only to call require for this module and all globals will be registered. For example:

    require("globals");

	setTimeout(function(){ console.log("Test"); }, 2000);

Global functions/objects are: setTimeout, clearTimeout, setInterval, clearInterval and console.