REFACTOR: Use a module for Ember.isEmpty

This commit is contained in:
Robin Ward
2019-10-31 13:37:24 -04:00
parent 2b8a013e32
commit 90f934a660
85 changed files with 232 additions and 145 deletions

View File

@ -1,3 +1,4 @@
import { isEmpty } from "@ember/utils";
import Component from "@ember/component";
import computed from "ember-addons/ember-computed-decorators";
@ -5,7 +6,7 @@ export default Component.extend({
@computed("value")
enabled: {
get(value) {
if (Ember.isEmpty(value)) {
if (isEmpty(value)) {
return false;
}
return value.toString() === "true";