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 support for specifying parent container #86

Merged
merged 1 commit into from
Jun 21, 2014

Conversation

jonjaques
Copy link
Contributor

This PR addresses @rstacruz' comments from #33 and updated it to work without the jQuery dependency.

Good idea on adding a conditional class to avoid having to adjust css values.

I opted to keep the parent option because I feel code ought to be self-documenting, and one of the first things I look for when reading a piece of code is look for the options hash. Having the default just be 'body' specified in string form implies you just need a CSS selector. I think atleast 😄, I don't mind removing it if you'd prefer though.

@rstacruz
Copy link
Owner

Pretty cool. Okay, keeping parent makes sense indeed. Sweet!

rstacruz added a commit that referenced this pull request Jun 21, 2014
Add support for specifying parent container
@rstacruz rstacruz merged commit 1bdc095 into rstacruz:master Jun 21, 2014
rstacruz added a commit that referenced this pull request Jun 21, 2014
@rstacruz
Copy link
Owner

This has now been implemented.

Documented here: https://github.com/rstacruz/nprogress/blob/master/Readme.md#parent

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