Commit 470456c5 authored by olau@iola.dk's avatar olau@iola.dk

Added $.plot.version with the Flot version as a string and made sure

the version comment at the top of jquery.flot.js is included in the
minified output (suggested by arockinit)


git-svn-id: https://flot.googlecode.com/svn/trunk@308 1e0a6537-2640-0410-bfb7-f154510ff394
parent 1e050212
......@@ -1156,9 +1156,15 @@ Here's a brief explanation of how the plugin plumbings work:
Each plugin registers itself in the global array $.plot.plugins. When
you make a new plot object with $.plot, Flot goes through this array
calling the "init" function of each plugin and merging default options
from its "option" attribute. The init function gets a reference to the
plot object created and uses this to register hooks and add new public
methods if needed.
from the plugin's "option" attribute. The init function gets a
reference to the plot object created and uses this to register hooks
and add new public methods if needed.
See the PLUGINS.txt file for details on how to write a plugin. As the
above description hints, it's actually pretty easy.
Version number
--------------
The version number of Flot is available in $.plot.version.
......@@ -87,6 +87,8 @@ Changes:
- Options for controlling whether an axis is shown or not (suggestion
by Timo Tuominen) and whether to reserve space for it even if it
isn't shown.
- New attribute $.plot.version with the Flot version as a string.
- The version comment is now included in the minified jquery.flot.min.js.
- New hooks: drawSeries
......
/* Javascript plotting library for jQuery, v. 0.6.
/*! Javascript plotting library for jQuery, v. 0.6.
*
* Released under the MIT license by IOLA, December 2007.
*
......@@ -2481,6 +2481,8 @@
return plot;
};
$.plot.version = "0.7pre";
$.plot.plugins = [];
// returns a string with the date d formatted according to fmt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment