Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix: Consider deferred rendering with DataTables 1.8 - can't repositi…

…on DOM nodes which having been created yet!
  • Loading branch information...
commit d0b17ab5804b9a722bbfc8376d99207f5e8fe592 1 parent 69e14f1
@DataTables DataTables authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 media/js/ColReorder.js
View
5 media/js/ColReorder.js
@@ -217,7 +217,10 @@ $.fn.dataTableExt.oApi.fnColReorder = function ( oSettings, iFrom, iTo )
/* Body */
for ( i=0, iLen=oSettings.aoData.length ; i<iLen ; i++ )
{
- fnDomSwitch( oSettings.aoData[i].nTr, iVisibleIndex, iInsertBeforeIndex );
+ if ( oSettings.aoData[i].nTr !== null )
+ {
+ fnDomSwitch( oSettings.aoData[i].nTr, iVisibleIndex, iInsertBeforeIndex );
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.