Skip to content

Commit

Permalink
Merge pull request #11707 from duggiefresh/remove-everyby
Browse files Browse the repository at this point in the history
[CLEANUP beta] Remove Enumerable.everyBy
  • Loading branch information
stefanpenner committed Jul 10, 2015
2 parents f6e58fc + 5c4a428 commit b97a80d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
10 changes: 0 additions & 10 deletions packages/ember-runtime/lib/mixins/enumerable.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,16 +599,6 @@ export default Mixin.create({
return !this.find((x, idx, i) => !callback.call(target, x, idx, i));
},

/**
@method everyBy
@param {String} key the property to test
@param {String} [value] optional value to test against.
@deprecated Use `isEvery` instead
@return {Boolean}
@public
*/
everyBy: aliasMethod('isEvery'),

/**
@method everyProperty
@param {String} key the property to test
Expand Down
5 changes: 0 additions & 5 deletions packages/ember-runtime/tests/suites/enumerable/every.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@ suite.test('should return true if every property matches null', function() {
equal(obj.isEvery('bar', null), false, 'isEvery(\'bar\', null)');
});

suite.test('everyBy should be aliased to isEvery', function() {
var obj = this.newObject();
equal(obj.isEvery, obj.everyBy);
});

suite.test('everyProperty should be aliased to isEvery', function() {
var obj = this.newObject();
equal(obj.isEvery, obj.everyProperty);
Expand Down

0 comments on commit b97a80d

Please sign in to comment.