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

Dev fix: The table() method was truncating the exisiting object, it

should have been operating on a new object
This commit is contained in:
Allan Jardine 2014-01-31 13:24:27 +00:00
parent e57b905431
commit ee4ee545d1
2 changed files with 4 additions and 6 deletions

View File

@ -1 +1 @@
31d2e3db4630712b55184fd58abdf2b0b529848a
c2ea3fed769ec5de9a9ef9d8b26c0cdf71619fb1

View File

@ -6991,11 +6991,9 @@
var ctx = tables.context;
// Truncate to the first matched table
if ( ctx.length ) {
ctx.length = 1;
}
return tables;
return ctx.length ?
new _Api( ctx[0] ) :
tables;
} );