angular-cn/packages/platform-browser/testing/src
Martin Probst 37bb90140c refactor(platform-browser): avoid mutable exports. (#34207)
Previously, browser_util would export a mutable `let` binding that was
initialized as a side-effect of `BrowserDetection.setup()`. This change
refactors the mutable binding into a `const` binding that is immediately
initialized in its initialized.

This is functionally equivalent, but makes it easier for module
optimizers such as Closure Compiler to track down side effects and prune
modules. It is also arguably cleaner to read (no worries about later
changes to the apparently mutable but effectively const binding).

PR Close #34207
2019-12-05 10:19:12 -08:00
..
browser.ts docs: update platform-browser with `@publicApi` tags (#26595) 2018-10-19 14:35:52 -07:00
browser_util.ts refactor(platform-browser): avoid mutable exports. (#34207) 2019-12-05 10:19:12 -08:00
matchers.ts refactor: Move `dom_adapter.ts` to `@angular/common` (#32154) 2019-08-29 21:51:56 -07:00
testing.ts build: fix file paths after moving modules/@angular/* to packages/* 2017-03-08 16:29:28 -08:00