OpenSeadragon.version property change

grunt property name changed to be more OpenSeadragon-specific
This commit is contained in:
Mark Salsbery 2013-11-25 09:30:49 -08:00
parent 2a1b797767
commit f0d6a5872f
2 changed files with 6 additions and 7 deletions

View File

@ -55,7 +55,7 @@ module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: packageJson,
version: {
osdVersion: {
versionStr: packageJson.version,
major: parseInt(packageJson.version.split('.')[0]),
minor: parseInt(packageJson.version.split('.')[1]),

View File

@ -280,18 +280,17 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
/**
* The OpenSeadragon version.
*
* @member {Object} version
* @memberof OpenSeadragon
* @member {Object} OpenSeadragon.version
* @property {String} versionStr - The version number as a string ('major.minor.revision').
* @property {Number} major - The major version number.
* @property {Number} minor - The minor version number.
* @property {Number} revision - The revision number.
*/
$.version = {
versionStr: '<%= version.versionStr %>',
major: parseInt('<%= version.major %>'),
minor: parseInt('<%= version.minor %>'),
revision: parseInt('<%= version.revision %>')
versionStr: '<%= osdVersion.versionStr %>',
major: parseInt('<%= osdVersion.major %>'),
minor: parseInt('<%= osdVersion.minor %>'),
revision: parseInt('<%= osdVersion.revision %>')
};