Skip to content

Commit

Permalink
bind-data-test-attributes: Avoid deprecated getWithDefault() call (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 authored Sep 1, 2020
1 parent c053768 commit 9c0d634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/utils/bind-data-test-attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9c0d634

Please sign in to comment.