Skip to content

Commit

Permalink
Merge pull request #18237 from sdebarros/simplify-emberarray-definition
Browse files Browse the repository at this point in the history
[DOCS] Fix typos and simplify EmberArray definition
  • Loading branch information
locks authored Aug 16, 2019
2 parents 4ae6015 + 4ac7623 commit 49973bc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 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,8 +203,8 @@ 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
membership of an array changes by using `.observes('myArray.[]')`.
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
primitives to use it: `length()` and `objectAt()`.
Expand Down

0 comments on commit 49973bc

Please sign in to comment.