mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
OpenSeadragon.version property change
grunt property name changed to be more OpenSeadragon-specific
This commit is contained in:
parent
2a1b797767
commit
f0d6a5872f
@ -55,7 +55,7 @@ module.exports = function(grunt) {
|
|||||||
// Project configuration.
|
// Project configuration.
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
pkg: packageJson,
|
pkg: packageJson,
|
||||||
version: {
|
osdVersion: {
|
||||||
versionStr: packageJson.version,
|
versionStr: packageJson.version,
|
||||||
major: parseInt(packageJson.version.split('.')[0]),
|
major: parseInt(packageJson.version.split('.')[0]),
|
||||||
minor: parseInt(packageJson.version.split('.')[1]),
|
minor: parseInt(packageJson.version.split('.')[1]),
|
||||||
|
@ -280,18 +280,17 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
|||||||
/**
|
/**
|
||||||
* The OpenSeadragon version.
|
* The OpenSeadragon version.
|
||||||
*
|
*
|
||||||
* @member {Object} version
|
* @member {Object} OpenSeadragon.version
|
||||||
* @memberof OpenSeadragon
|
|
||||||
* @property {String} versionStr - The version number as a string ('major.minor.revision').
|
* @property {String} versionStr - The version number as a string ('major.minor.revision').
|
||||||
* @property {Number} major - The major version number.
|
* @property {Number} major - The major version number.
|
||||||
* @property {Number} minor - The minor version number.
|
* @property {Number} minor - The minor version number.
|
||||||
* @property {Number} revision - The revision number.
|
* @property {Number} revision - The revision number.
|
||||||
*/
|
*/
|
||||||
$.version = {
|
$.version = {
|
||||||
versionStr: '<%= version.versionStr %>',
|
versionStr: '<%= osdVersion.versionStr %>',
|
||||||
major: parseInt('<%= version.major %>'),
|
major: parseInt('<%= osdVersion.major %>'),
|
||||||
minor: parseInt('<%= version.minor %>'),
|
minor: parseInt('<%= osdVersion.minor %>'),
|
||||||
revision: parseInt('<%= version.revision %>')
|
revision: parseInt('<%= osdVersion.revision %>')
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user