microsoft / datamations

https://microsoft.github.io/datamations/
Other
67 stars 15 forks source link

Check for HTMLWidgets before checking for Shiny to send slider info #76

Closed sharlagelfand closed 3 years ago

sharlagelfand commented 3 years ago

Closing out #56, this adds the fix that @giorgi-ghviniashvili mentioned in #70 where the code needs to first check that HTMLWidgets is defined before it can also check that Shiny is defined - HTMLWidgets is always defined when we call the widget in R, since it's created through the HTMLWidgets framework, but it may not be defined when calling the JS code without R, or with other languages, etc, so needs to be checked for :)