fix version comparison code

This commit is contained in:
Sacha Greif 2014-11-25 17:33:26 +09:00
parent dbc42a7b51
commit bef1fe5453

View file

@ -4,7 +4,7 @@ compareVersions = function (v1, v2) { // return true if v2 is newer than v1
// go through each segment of v2 and stop if we find one that's higher
// than the equivalent segment of v1; else return false
return v2Array.some( function (value, index) {
return value > v1Array[index];
return parseInt(value) > parseInt(v1Array[index]);
});
return false;
}