##// END OF EJS Templates
Corrected Scope.own() to cleanup the supplied object immediately when the scope is disposed already
Corrected Scope.own() to cleanup the supplied object immediately when the scope is disposed already

File last commit:

r110:1a190b3a757d v1.4.0 default
r131:c7d9ad82b374 v1.8.1 default
Show More
logging.ts
11 lines | 540 B | video/mp2t | TypeScriptLexer
cin
corrected tear down logic handling in observables. Added support for observable query results
r110 import { TraceSource } from "@implab/core-amd/log/TraceSource";
const delegate = <T extends { [p in K]: (...args: unknown[]) => unknown }, K extends string>(target: T, key: K): OmitThisParameter<T[K]> => target[key].bind(target) as OmitThisParameter<T[K]>;
export const log = (trace: TraceSource) => delegate(trace, "log");
export const debug = (trace: TraceSource) => delegate(trace, "debug");
export const warn = (trace: TraceSource) => delegate(trace, "warn");
export const error = (trace: TraceSource) => delegate(trace, "error");