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

Add version number as public variable #96

Closed
Indigo744 opened this issue Sep 29, 2017 · 0 comments
Closed

Add version number as public variable #96

Indigo744 opened this issue Sep 29, 2017 · 0 comments

Comments

@Indigo744
Copy link

First of all, I really like your library. Good job!

However, it would be good if it provides the current version in a public variable, for instance accessible by $.Zebra_DatePicker.version.

I can think of several use cases for such information:

  • allow people to build plugins for a certain version
  • check current version and github version for updates

Of course, you will need to remember to modify this variable each time you release a new version.
But I think it is always worth the hassle.

Example of implementation (that I find useful) : DataTables (jQuery plugin):
https://github.com/DataTables/DataTables/blob/master/media/js/jquery.dataTables.js#L9416

I could submit a PR if you want.

Thanks!

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

1 participant