« All deprecation guides
Deprecation Guide for Ember.computed.any
Ember.computed.any
is deprecated in favor of Ember.computed.or
. This change is required because the computed value is the first value ( like || ) rather than a boolean value ( like Array.prototype.any ). For example:
let Hamster = Ember.Object.extend({
hasClothes: Ember.computed.any('hat', 'shirt')
});
The above code will be changed to
let Hamster = Ember.Object.extend({
hasClothes: Ember.computed.or('hat', 'shirt')
});