Permalink
Browse files

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

…on DOM nodes which having been created yet!
  • Loading branch information...
1 parent 69e14f1 commit d0b17ab5804b9a722bbfc8376d99207f5e8fe592 @DataTables DataTables committed Jul 6, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 media/js/ColReorder.js
View
@@ -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 );
+ }
}
}

0 comments on commit d0b17ab

Please sign in to comment.