Skip to content

Commit

Permalink
[DOC release] Mark Ember.Array methods as public
Browse files Browse the repository at this point in the history
- compact
- every
- forEach
- without
- sortBy

Closes emberjs#12004
[ci skip]
  • Loading branch information
duggiefresh committed Aug 7, 2015
1 parent 3c4749a commit d9c3027
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/ember-runtime/lib/mixins/enumerable.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export default Mixin.create({
@param {Function} callback The callback to execute
@param {Object} [target] The target object to use
@return {Object} receiver
@private
@public
*/
forEach(callback, target) {
if (typeof callback !== 'function') {
Expand Down Expand Up @@ -579,7 +579,7 @@ export default Mixin.create({
@param {Function} callback The callback to execute
@param {Object} [target] The target object to use
@return {Boolean}
@private
@public
*/
every(callback, target) {
return !this.find((x, idx, i) => !callback.call(target, x, idx, i));
Expand Down Expand Up @@ -776,7 +776,7 @@ export default Mixin.create({
@method compact
@return {Array} the array without null and undefined elements.
@private
@public
*/
compact() {
return this.filter(function(value) {
Expand All @@ -797,7 +797,7 @@ export default Mixin.create({
@method without
@param {Object} value
@return {Ember.Enumerable}
@private
@public
*/
without(value) {
if (!this.contains(value)) {
Expand Down Expand Up @@ -1051,7 +1051,7 @@ export default Mixin.create({
@param {String} property name(s) to sort on
@return {Array} The sorted array.
@since 1.2.0
@private
@public
*/
sortBy() {
var sortKeys = arguments;
Expand Down

0 comments on commit d9c3027

Please sign in to comment.