I did not use eval(...) as suggested because I found on the internet that it might cause security issues. Because of that, I chose the window[...] approach. One notable drawback of this implementation is that the functions that will be used (passed in the onServerSearch parameter) must be defined outside of any document.ready statement.
I also updated the docs, NEWS.md and version.
Sorry if the news/version update is overboard - feel free to fix it or LMK and I'll create a new PR :)
This PR fixes issue mentioned in #664.
I did not use
eval(...)
as suggested because I found on the internet that it might cause security issues. Because of that, I chose thewindow[...]
approach. One notable drawback of this implementation is that the functions that will be used (passed in theonServerSearch
parameter) must be defined outside of any document.ready statement. I also updated the docs, NEWS.md and version.Sorry if the news/version update is overboard - feel free to fix it or LMK and I'll create a new PR :)
Thanks!