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

console.logs in shinyjqui.js #39

Closed
trafficonese opened this issue Mar 15, 2019 · 3 comments
Closed

console.logs in shinyjqui.js #39

trafficonese opened this issue Mar 15, 2019 · 3 comments

Comments

@trafficonese
Copy link

This is not a bug, but I am wondering if we could ge rid of the console.logs in shinyjqui.js.

I am refering to the ones in line 105-110:

   console.log('===================');
    console.log('ELEMENTS: ');
    console.log($els);
    console.log('MSG: ');
    console.log(msg);
    console.log('===================');
@Yang-Tang
Copy link
Owner

Hi @trafficonese , thanks for the suggestion. I have added a shinyjqui.debug option to control whether to display these messages.

@trafficonese
Copy link
Author

Thanks for that quick update.

Could you maybe show how to include that option in an UI-element (jqui_resizable for example).

I tried
jqui_resizable(uiOutput("id"), options = list(debug = TRUE)) and
jqui_resizable(uiOutput("id"), options = list(shinyjqui.debug = TRUE))

but that doesn't seem to have an effect, as msg.debug will be undefined but msg.options.debug / msg.options["shinyjqui.debug"] would be true.

Same goes for the minified version? How do I control that with options?

@Yang-Tang
Copy link
Owner

It's a global option. When shinyjqui is loaded, it will add a shinyjqui.debug = FALSE to the global option list in current R session. You can just call options(shinyjqui.debug = TRUE) to change the behavior.

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