Closed henryruhs closed 8 years ago
What's the use case for that? We could add it, but if we don't need it, I'd rather avoid having the extra code to make this happen.
Correct, this is a "nice to have" feature but I could imagine multiple use cases.
~1
fetches the latest stable release and I like to know the current jBone, Zepto, jQuery version my suite is running by watching a dashboard.Maybe we wait for more opinions but there has to be a reason jQuery provides this feature.
Some libraries use $.fn.jquery
as differentiation between jQuery elements and DOM nodes as arguments.
I didn't want to make the version accessible from JS runtime to prevent people from relying on it, e.g. writing plugins that check the version string.
Is it an option that your tools can read the version string from the first line of zepto.js
source file?
Closing this because there was no response to our questions in a while. Feel free to reopen with the requested information!
Hello,
is it possible to get the current version of Zepto like in $.fn.jquery?