mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-19 03:51:07 +00:00
docs(dev-guide): Fixed a typo.
This commit is contained in:
parent
187cd0a058
commit
7b7b12e477
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ function MyClass() {
|
||||||
|
|
||||||
While no new instance of the dependency is being created, it is fundamentally the same as `new`, in
|
While no new instance of the dependency is being created, it is fundamentally the same as `new`, in
|
||||||
that there is no good way to intercept the call to `global.xhr` for testing purposes, other then
|
that there is no good way to intercept the call to `global.xhr` for testing purposes, other then
|
||||||
through monkey patching. The basic issue for testing is that global variable needs to be mutated in
|
through monkey patching. The basic issue for testing is that a global variable needs to be mutated in
|
||||||
order to replace it with call to a mock method. For further explanation why this is bad see: {@link
|
order to replace it with call to a mock method. For further explanation why this is bad see: {@link
|
||||||
http://misko.hevery.com/code-reviewers-guide/flaw-brittle-global-state-singletons/ Brittle Global
|
http://misko.hevery.com/code-reviewers-guide/flaw-brittle-global-state-singletons/ Brittle Global
|
||||||
State & Singletons}
|
State & Singletons}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue