Update lifecycle.ts

pull/5690/head
pushkin 5 years ago committed by GitHub
parent ddd79e3f9d
commit 881a0ca94d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -54,6 +54,10 @@ export function getContext<T>(key): T {
return get_current_component().$$.context.get(key);
}
export function hasContext(key): boolean {
return get_current_component().$$.context.has(key);
}
// TODO figure out if we still want to support
// shorthand events, or if we want to implement
// a real bubbling mechanism

Loading…
Cancel
Save