Merge pull request #204 from Philzen/patch-2

API: `fnSetFilteringDelay` - Removed unused variables and fixed indentation
pull/208/head
Allan Jardine 10 years ago
commit 737bc82979

@ -31,13 +31,11 @@ jQuery.fn.dataTableExt.oApi.fnSetFilteringDelay = function ( oSettings, iDelay )
this.each( function ( i ) {
$.fn.dataTableExt.iApiIndex = i;
var
$this = this,
oTimerId = null,
sPreviousSearch = null,
anControl = $( 'input', _that.fnSettings().aanFeatures.f );
anControl.unbind( 'keyup search input' ).bind( 'keyup search input', function() {
var $$this = $this;
anControl.unbind( 'keyup search input' ).bind( 'keyup search input', function() {
if (sPreviousSearch === null || sPreviousSearch != anControl.val()) {
window.clearTimeout(oTimerId);

Loading…
Cancel
Save