This website requires JavaScript.
Explore
Help
Register
Sign In
rooty
/
DataTables
Watch
1
Star
0
Fork
0
You've already forked DataTables
mirror of
https://github.com/DataTables/DataTables.git
synced
2025-01-19 12:52:11 +01:00
Code
Issues
Releases
Activity
DataTables
/
.datatables-commit-sync
2 lines
41 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Fix: Arrays in settings object shared between instances - 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
2013-08-05 09:04:23 +01:00
e171e7b3e698822231f23b73dec77fea2320a227
Reference in New Issue
Copy Permalink