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

add workaround for lessOptions in nested addons #37

Merged
merged 1 commit into from
Oct 16, 2015

Conversation

orochi235
Copy link

Added workaround to get options.paths working when used in nested ember-cli addons. (See #36.)

// fix issue with nested addons, in which case our app.options hash is actually on app.app.options.
// n.b. this can be removed once ember-cli better supports nested addons.
// (see https://github.com/gdub22/ember-cli-less/issues/36)
if (!app.options && app.app && app.app.options) app = app.app;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make this a block if, i.e.

if (condition) {
  statement;
}

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup! Just pushed an update.

@knownasilya
Copy link
Collaborator

If you can squash your commits, that would be great. Then I'll merge it. Thanks

@orochi235
Copy link
Author

I messed up the initial push and the PR auto-closed. It's cleaned up and should be good now.

@orochi235 orochi235 reopened this Oct 16, 2015
knownasilya pushed a commit that referenced this pull request Oct 16, 2015
add workaround for lessOptions in nested addons
@knownasilya knownasilya merged commit 6844200 into gpoitch:master Oct 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants