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:
parent
da2a834177
commit
fad7536608
@ -493,7 +493,7 @@ this.fnDestroy = function ( bRemove )
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Blitz all DT events */
|
/* 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 */
|
/* If there is an 'empty' indicator row, remove it */
|
||||||
$('tbody>tr>td.'+oSettings.oClasses.sRowEmpty, oSettings.nTable).parent().remove();
|
$('tbody>tr>td.'+oSettings.oClasses.sRowEmpty, oSettings.nTable).parent().remove();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user