From a9687655ea016ec89dd269cc5f74ca9f8990347b Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Mon, 3 Mar 2014 10:19:21 +0000 Subject: [PATCH] Fix: Cell selector, when operating as a jQuery selector needs to return an array, not a jQuery object - otherwise IE8- throws an error - This fixes DataTables/DataTables #262 --- .datatables-commit-sync | 2 +- media/js/jquery.dataTables.js | 17 ++++++++++------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.datatables-commit-sync b/.datatables-commit-sync index aca7e3f7..0ab0d421 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -dc21e8db04d98fd6fdd03d3308cb02cb367ee939 +6ce73e2332ab123287d3333b965c0abdc038f93c diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index f8daa2c0..da6a4e82 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -8021,14 +8021,17 @@ } // jQuery filtered cells - return allCells.filter( s ).map( function (i, el) { - row = el.parentNode._DT_RowIndex; + return allCells + .filter( s ) + .map( function (i, el) { + row = el.parentNode._DT_RowIndex; - return { - row: row, - column: $.inArray( el, data[ row ].anCells ) - }; - } ); + return { + row: row, + column: $.inArray( el, data[ row ].anCells ) + }; + } ) + .toArray(); } ); };