Skip to content

Commit

Permalink
Fix typos and simplify EmberArray definition
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebarros committed Aug 8, 2019
1 parent d664946 commit cda774b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/@ember/-internals/runtime/lib/mixins/array.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@ function mapBy(key) {
concrete implementation, but it can be used up by other classes that want
to appear like arrays.
For example, ArrayProxy is a concrete classes that can
be instantiated to implement array-like behavior. Both of these classes use
the Array Mixin by way of the MutableArray mixin, which allows observable
changes to be made to the underlying array.
For example, ArrayProxy is a concrete class that can be instantiated to
implement array-like behavior. This class uses the Array Mixin by way of
the MutableArray mixin, which allows observable changes to be made to the
underlying array.
This mixin defines methods specifically for collections that provide
index-ordered access to their contents. When you are designing code that
Expand All @@ -203,7 +203,7 @@ function mapBy(key) {
as controllers and collections.
You can use the methods defined in this module to access and modify array
contents in a KVO-friendly way. You can also be notified whenever the
contents in an observable-friendly way. You can also be notified whenever the
membership of an array changes by using `.observes('myArray.[]')`.
To support `EmberArray` in your own class, you must override two
Expand Down

0 comments on commit cda774b

Please sign in to comment.