Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ember-component validator to work with Ember CLI 3.2.0 #164

Merged
merged 1 commit into from
Apr 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion addon/utils/validators/ember-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export default function (ctx, name, value, def, logErrors, throwErrors) {
// NOTE: this is based on internal API and thus could break without warning.
return (
key.indexOf('COMPONENT_CELL') > -1 || // Pre Glimmer 2
key.indexOf('COMPONENT DEFINITION') === 0 // Glimmer 2
key.indexOf('COMPONENT DEFINITION') === 0 || // Glimmer 2
// Added for: Ember CLI 3.2.0 after upgrade from Ember CLI 2.12.3
key.indexOf('CURRIED COMPONENT DEFINITION') === 0
)
})

Expand Down