MCPcopy Index your code
hub / github.com/angular/angular / wrap

Method wrap

packages/zone.js/lib/zone-impl.ts:190–190  ·  view source on GitHub ↗

* Wraps a callback function in a new function which will properly restore the current zone upon * invocation. * * The wrapped function will properly forward `this` as well as `arguments` to the `callback`. * * Before the function is wrapped the zone can intercept the `callback` by dec

(callback: F, source: string)

Source from the content-addressed store, hash-verified

188 * [Zone.runGuarded].
189 */
190 wrap<F extends Function>(callback: F, source: string): F;
191
192 /**
193 * Invokes a function in a given zone.

Callers 10

wrapHostMethod · 0.65
constructorMethod · 0.65
constructorMethod · 0.65
compiler_spec.tsFile · 0.65
createNgCompilerForFileFunction · 0.65
patchAddListenerFunction · 0.65
patchCordovaFunction · 0.65
wrapWithCurrentZoneFunction · 0.65
proxy.spec.tsFile · 0.65
enterIframeFunction · 0.65

Implementers 1

ZoneImplpackages/zone.js/lib/zone-impl.ts

Calls

no outgoing calls

Tested by

no test coverage detected