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 documentation to show example of defining a single global option #27

Closed
julkue opened this issue Mar 14, 2016 · 3 comments
Closed

Comments

@julkue
Copy link
Contributor

julkue commented Mar 14, 2016

For example

$.fn.postitall.globals = {
    showInfo: false
};

will fail, as it will override not just showInfo, but all options. So there is a hint necessary that shows how to set a single option. It could look like:

$.fn.postitall.globals.showInfo = false;
@txusko
Copy link
Owner

txusko commented Mar 14, 2016

I have implemented two global methods to change & restore configuration:
http://postitall.txusko.com/plugin.html#doc_changeglobalconfig

$.PostItAll.changeConfig('global', {
    showInfo : false
});

Anyway, you can change the configuration like you do in your second example, so I will add it in the documentation coming soon. 👍

@txusko
Copy link
Owner

txusko commented Mar 14, 2016

I am trying to split the documentation into gh-pages. Until then I will not update the documentation with the new features & corrections. Sorry.

@julkue
Copy link
Contributor Author

julkue commented Mar 14, 2016

No problem. If there exists a way to override the setting it's not necessary. I didn't noticed that.

@julkue julkue closed this as completed Mar 14, 2016
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

No branches or pull requests

2 participants