mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
Added radix to parseInt()s
This commit is contained in:
parent
f0d6a5872f
commit
2684f0ab3a
@ -57,9 +57,9 @@ module.exports = function(grunt) {
|
|||||||
pkg: packageJson,
|
pkg: packageJson,
|
||||||
osdVersion: {
|
osdVersion: {
|
||||||
versionStr: packageJson.version,
|
versionStr: packageJson.version,
|
||||||
major: parseInt(packageJson.version.split('.')[0]),
|
major: parseInt(packageJson.version.split('.')[0], 10),
|
||||||
minor: parseInt(packageJson.version.split('.')[1]),
|
minor: parseInt(packageJson.version.split('.')[1], 10),
|
||||||
revision: parseInt(packageJson.version.split('.')[2])
|
revision: parseInt(packageJson.version.split('.')[2], 10)
|
||||||
},
|
},
|
||||||
clean: {
|
clean: {
|
||||||
build: ["build"],
|
build: ["build"],
|
||||||
|
@ -288,9 +288,9 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
|||||||
*/
|
*/
|
||||||
$.version = {
|
$.version = {
|
||||||
versionStr: '<%= osdVersion.versionStr %>',
|
versionStr: '<%= osdVersion.versionStr %>',
|
||||||
major: parseInt('<%= osdVersion.major %>'),
|
major: parseInt( '<%= osdVersion.major %>', 10 ),
|
||||||
minor: parseInt('<%= osdVersion.minor %>'),
|
minor: parseInt( '<%= osdVersion.minor %>', 10 ),
|
||||||
revision: parseInt('<%= osdVersion.revision %>')
|
revision: parseInt( '<%= osdVersion.revision %>', 10 )
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user