Skip to content

Commit

Permalink
chore: revert js changes
Browse files Browse the repository at this point in the history
  • Loading branch information
robfrank committed Jan 24, 2025
1 parent 4735fd9 commit cbc739b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8430,19 +8430,19 @@
DataTable.versionCheck = DataTable.fnVersionCheck = function (version) {
var aThis = DataTable.version.split(".");
var aThat = version.split(".");
var self, iThat;
var iThis, iThat;

for (var i = 0, iLen = aThat.length; i < iLen; i++) {
self = parseInt(aThis[i], 10) || 0;
iThis = parseInt(aThis[i], 10) || 0;
iThat = parseInt(aThat[i], 10) || 0;

// Parts are the same, keep comparing
if (self === iThat) {
if (iThis === iThat) {
continue;
}

// Parts are different, return immediately
return self > iThat;
return iThis > iThat;
}

return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78875,19 +78875,19 @@ this.pdfMake.vfs = {
DataTable.versionCheck = DataTable.fnVersionCheck = function (version) {
var aThis = DataTable.version.split(".");
var aThat = version.split(".");
var self, iThat;
var iThis, iThat;

for (var i = 0, iLen = aThat.length; i < iLen; i++) {
self = parseInt(aThis[i], 10) || 0;
iThis = parseInt(aThis[i], 10) || 0;
iThat = parseInt(aThat[i], 10) || 0;

// Parts are the same, keep comparing
if (self === iThat) {
if (iThis === iThat) {
continue;
}

// Parts are different, return immediately
return self > iThat;
return iThis > iThat;
}

return true;
Expand Down

0 comments on commit cbc739b

Please sign in to comment.