From 9c0d6346eb8193468378d9945aa29cfa63835960 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Tue, 1 Sep 2020 14:30:56 +0200 Subject: [PATCH] bind-data-test-attributes: Avoid deprecated `getWithDefault()` call (#587) --- addon/utils/bind-data-test-attributes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/utils/bind-data-test-attributes.js b/addon/utils/bind-data-test-attributes.js index 3083f8f0..5c87cdd9 100644 --- a/addon/utils/bind-data-test-attributes.js +++ b/addon/utils/bind-data-test-attributes.js @@ -30,7 +30,7 @@ export default function bindDataTestAttributes(component) { id: 'ember-test-selectors.empty-tag-name', }); - let attributeBindings = component.getWithDefault('attributeBindings', []); + let attributeBindings = component.get('attributeBindings') || []; if (!isArray(attributeBindings)) { attributeBindings = [attributeBindings]; } else {