From 4e80867442fb46c03c627a7a628849359dd8dc18 Mon Sep 17 00:00:00 2001 From: Matthew Hasbach Date: Tue, 5 May 2015 00:44:33 -0400 Subject: [PATCH] Fixed a bug in which $.isPlainObject(e) would return false in some situations and true in others, causing the associated logic to sometimes be skipped. Switched to a more specific e instanceof $.Event check. Fixes DataTables/Plugins#190 --- features/conditionalPaging/dataTables.conditionalPaging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/conditionalPaging/dataTables.conditionalPaging.js b/features/conditionalPaging/dataTables.conditionalPaging.js index 0b1ef37..140254b 100644 --- a/features/conditionalPaging/dataTables.conditionalPaging.js +++ b/features/conditionalPaging/dataTables.conditionalPaging.js @@ -38,7 +38,7 @@ var $paging = $(api.table().container()).find('div.dataTables_paginate'), pages = api.page.info().pages; - if ($.isPlainObject(e)) { + if (e instanceof $.Event) { if (pages <= 1) { if (config.style === 'fade') { $paging.stop().fadeTo(speed, 0);