From 2684f0ab3a0c0ecedeab92e6addd8195a2ab0926 Mon Sep 17 00:00:00 2001 From: Mark Salsbery Date: Mon, 25 Nov 2013 10:44:34 -0800 Subject: [PATCH] Added radix to parseInt()s --- Gruntfile.js | 6 +++--- src/openseadragon.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 5243921a..b077b431 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -57,9 +57,9 @@ module.exports = function(grunt) { pkg: packageJson, osdVersion: { versionStr: packageJson.version, - major: parseInt(packageJson.version.split('.')[0]), - minor: parseInt(packageJson.version.split('.')[1]), - revision: parseInt(packageJson.version.split('.')[2]) + major: parseInt(packageJson.version.split('.')[0], 10), + minor: parseInt(packageJson.version.split('.')[1], 10), + revision: parseInt(packageJson.version.split('.')[2], 10) }, clean: { build: ["build"], diff --git a/src/openseadragon.js b/src/openseadragon.js index 368646ee..1eadf026 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -288,9 +288,9 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){ */ $.version = { versionStr: '<%= osdVersion.versionStr %>', - major: parseInt('<%= osdVersion.major %>'), - minor: parseInt('<%= osdVersion.minor %>'), - revision: parseInt('<%= osdVersion.revision %>') + major: parseInt( '<%= osdVersion.major %>', 10 ), + minor: parseInt( '<%= osdVersion.minor %>', 10 ), + revision: parseInt( '<%= osdVersion.revision %>', 10 ) };