stefangabos / Zebra_Dialog

A small, compact, and highly configurable jQuery plugin for creating beautiful modal dialog boxes
https://stefangabos.github.io/Zebra_Dialog/flat.html
Other
155 stars 67 forks source link

Add version number as public variable #13

Closed Indigo744 closed 6 years ago

Indigo744 commented 6 years ago

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_Dialog.version.

I can think of several use cases for such information:

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!