Skip to content

Commit

Permalink
fix(platform_browser): fix disableDebugTools() (#12918)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzmitry Shylovich authored and chuckjaz committed Nov 17, 2016
1 parent dc1662a commit 7b67bad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/@angular/platform-browser/src/browser/tools/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 7b67bad

Please sign in to comment.