Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 44c9d16

Browse files
michaelgeorgeattardNarretz
authored andcommitted
docs($rootScope): improve clarity and consistency
Closes #13110
1 parent 5758d73 commit 44c9d16

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/ng/rootScope.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
* exposed as $$____ properties
1515
*
1616
* Loop operations are optimized by using while(count--) { ... }
17-
* - this means that in order to keep the same order of execution as addition we have to add
17+
* - This means that in order to keep the same order of execution as addition we have to add
1818
* items to the array at the beginning (unshift) instead of at the end (push)
1919
*
2020
* Child scopes are created and removed often
21-
* - Using an array would be slow since inserts in middle are expensive so we use linked list
21+
* - Using an array would be slow since inserts in the middle are expensive; so we use linked lists
2222
*
23-
* There are few watches then a lot of observers. This is why you don't want the observer to be
24-
* implemented in the same way as watch. Watch requires return of initialization function which
25-
* are expensive to construct.
23+
* There are fewer watches than observers. This is why you don't want the observer to be implemented
24+
* in the same way as watch. Watch requires return of the initialization function which is expensive
25+
* to construct.
2626
*/
2727

2828

@@ -64,7 +64,7 @@
6464
* Every application has a single root {@link ng.$rootScope.Scope scope}.
6565
* All other scopes are descendant scopes of the root scope. Scopes provide separation
6666
* between the model and the view, via a mechanism for watching the model for changes.
67-
* They also provide an event emission/broadcast and subscription facility. See the
67+
* They also provide event emission/broadcast and subscription facility. See the
6868
* {@link guide/scope developer guide on scopes}.
6969
*/
7070
function $RootScopeProvider() {

0 commit comments

Comments
 (0)