diff --git a/media/src/api/api.static.js b/media/src/api/api.static.js index 5000dce4..18af89d0 100644 --- a/media/src/api/api.static.js +++ b/media/src/api/api.static.js @@ -1,5 +1,4 @@ - /** * Provide a common method for plug-ins to check the version of DataTables being used, in order * to ensure compatibility. @@ -15,25 +14,24 @@ */ DataTable.fnVersionCheck = function( sVersion ) { - /* This is cheap, but effective */ - var fnZPad = function (Zpad, count) - { - while(Zpad.length < count) { - Zpad += '0'; - } - return Zpad; - }; var aThis = DataTable.ext.sVersion.split('.'); var aThat = sVersion.split('.'); - var sThis = '', sThat = ''; + var iThis, sThat; - for ( var i=0, iLen=aThat.length ; i iThat; } - - return parseInt(sThis, 10) >= parseInt(sThat, 10); + return true; };