fix(platform_browser): fix disableDebugTools() (#12918)

This commit is contained in:
Dzmitry Shylovich 2016-11-16 20:16:40 +03:00 committed by Victor Berchet
parent 42198cd7d5
commit ce89039036
1 changed files with 3 additions and 1 deletions

View File

@ -37,5 +37,7 @@ export function enableDebugTools<T>(ref: ComponentRef<T>): ComponentRef<T> {
* @experimental All debugging apis are currently experimental.
*/
export function disableDebugTools(): void {
delete context.ng.profiler;
if (context.ng) {
delete context.ng.profiler;
}
}