Skip to content

Instantly share code, notes, and snippets.

@arturovt
Last active July 27, 2019 16:36
Show Gist options
  • Save arturovt/fd50633cd192353a6c55eb7681ff7520 to your computer and use it in GitHub Desktop.
Save arturovt/fd50633cd192353a6c55eb7681ff7520 to your computer and use it in GitHub Desktop.
class ZoneDelegate {
public invoke(
targetZone: Zone,
callback: Function,
applyThis: any,
applyArgs?: any[],
source?: string
): any {
if (this._invokeZS) {
return this._invokeZS.onInvoke!(
this._invokeDlgt!,
this._invokeCurrZone!,
targetZone,
callback,
applyThis,
applyArgs,
source
);
}
return callback.apply(applyThis, applyArgs);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment