From 1d344dba69e2aa1ed60801058b1b4cc1273908f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20K=C3=BCppers?= Date: Tue, 23 Dec 2014 13:53:58 +0100 Subject: [PATCH] prerelease matters incoming 3.7.2 loses against existing 3.7.2 incoming 3.7.2-prerelease loses against existing 3.7.2 incoming 3.7.2-prerelease wins against existing 3.7.2-prerelease --- boot/boot.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boot/boot.js b/boot/boot.js index 9687d5fb4..587a7af38 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -375,7 +375,8 @@ $tw.utils.checkVersions = function(versionStringA,versionStringB) { ]; return (diff[0] > 0) || (diff[0] === 0 && diff[1] > 0) || - (diff[0] === 0 && diff[1] === 0 && diff[2] > 0); + (diff[0] === 0 && diff[1] === 0 && diff[2] > 0) || + ((diff[0] === 0 && diff[1] === 0 && diff[2] === 0) && !(versionA.prerelease && versionB.prerelease)); }; /*