emberjs/ember.js — pull request #3615 by corsen2000 (2013-10-20 12:29:47+00:00)
Title: Simplifying / correcting the observable "get" example

As a new user I do not understand the example for "get" in observable and I believe there may be an error.

This example references a method on "this" called "getEach". Although I realize this is not necessarily true, I tend to assume this example is on Ember.Object as there are similar examples in the guides that are on Ember.Object.

Ember.Object does not have a method "getEach", but more critically I can not find any method "getEach" in Ember that matches the signature and expectations here.

This call to "getEach" each expects multiple arguments of properties and returns an array of the values for those properties.

When searching the documentation the only "getEach" I found is an alias to "mapBy" that takes a single argument which is a property. It plucks the value from each object in the enumeration and returns it as an array.

This pull request simplifies the example. The "getEach" does not seem critical to what the example is trying to show.

I am new, so I apologize if I am missing something obvious.

Thank you.