mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-19 12:52:11 +01:00
38e12beac9
- Because of the way _fnExtend() was deep copying objects, but shallow copying (i.e. references) arrays, the arrays used in the settings object were actually being shared between all instances of DataTables on a page. - This is most noticable in the column filtering, whereby if you apply a filter to the column of one table, it is applied to all tables! - The fix is to dump _fnExtend and replace it with a typical jQuery extend. However, one special consideration is made for the data being passed it - we absolutely do want that reference to be retained (that + the fact that extend is slow on large arrays/objects) so it is dumped into a temp variable which is then assigned back to the cloned object. - This fixed DataTables/DataTables issue #213
2 lines
41 B
Plaintext
2 lines
41 B
Plaintext
e171e7b3e698822231f23b73dec77fea2320a227
|