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; }; diff --git a/media/src/core/core.ajax.js b/media/src/core/core.ajax.js index 2838c9eb..db00d6ef 100644 --- a/media/src/core/core.ajax.js +++ b/media/src/core/core.ajax.js @@ -21,10 +21,7 @@ function _fnAjaxUpdate( oSettings ) }, oSettings ); return false; } - else - { - return true; - } + return true; } @@ -132,10 +129,7 @@ function _fnAjaxUpdateDraw ( oSettings, json ) { return; } - else - { - oSettings.iDraw = json.sEcho * 1; - } + oSettings.iDraw = json.sEcho * 1; } if ( !oSettings.oScroll.bInfinite || oSettings.bSorted || oSettings.bFiltered ) diff --git a/media/src/core/core.draw.js b/media/src/core/core.draw.js index 3e5ebe9e..175d206c 100644 --- a/media/src/core/core.draw.js +++ b/media/src/core/core.draw.js @@ -380,15 +380,12 @@ function _fnDraw( oSettings ) iRowCount++; /* If there is an open row - and it is attached to this parent - attach it on redraw */ - if ( iOpenRows !== 0 ) + for ( var k=0 ; k