Skip to content

Commit

Permalink
Split "return" keyword and warn() invocations
Browse files Browse the repository at this point in the history
This messes up the debug macros Babel plugin apparently...
  • Loading branch information
Turbo87 committed Jul 6, 2017
1 parent 4a70517 commit b4f0588
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions addon/utils/bind-data-test-attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,23 @@ export default function bindDataTestAttributes(component) {
let message = `ember-test-selectors could not bind data-test-* properties on ${component} ` +
`automatically because tagName is empty.`;

return warn(message, false, {
warn(message, false, {
id: 'ember-test-selectors.empty-tag-name',
});

return;
}

let computedBindings = component.attributeBindings && component.attributeBindings.isDescriptor;
if (computedBindings) {
let message = `ember-test-selectors could not bind data-test-* properties on ${component} ` +
`automatically because attributeBindings is a computed property.`;

return warn(message, false, {
warn(message, false, {
id: 'ember-test-selectors.computed-attribute-bindings',
});

return;
}

let attributeBindings = component.getWithDefault('attributeBindings', []);
Expand Down

0 comments on commit b4f0588

Please sign in to comment.