1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-19 12:52:11 +01:00

Fix: $().andSelf() was deprecated in jQuery 1.8

- As of jQuery 1.8 `andSelf` was deprecated in favour of `andBack`.
  `andBack` was not available in jQuery <1.8, and I don't want to make
  1.8 a requirement yet, so a small workaround requiring two unbind
  calls is used to avoid calling `andSelf` or `andBack`.
This commit is contained in:
Allan Jardine 2013-02-07 08:29:51 +00:00
parent da2a834177
commit fad7536608

View File

@ -493,7 +493,7 @@ this.fnDestroy = function ( bRemove )
}
/* Blitz all DT events */
$(oSettings.nTableWrapper).find('*').andSelf().unbind('.DT');
$(oSettings.nTableWrapper).unbind('.DT').find('*').unbind('.DT');
/* If there is an 'empty' indicator row, remove it */
$('tbody>tr>td.'+oSettings.oClasses.sRowEmpty, oSettings.nTable).parent().remove();