TableDnD
TableDnD copied to clipboard
tableDnDSerialize is not working as advertized
Hello,
In documentation, you are writing
$("...").tableDnDSerialize()
* Will serialize and return the serialized string as above, but for each of the matching tables--so it can be
* called from anywhere and isn't dependent on the currentTable being set up correctly before calling
but I'm not able to get it work like this in jQuery 1.9 (The error message is "TypeError: table is null") and it doesn't even match source code. tableDnDSerialize is implemented like $.proxy($.tableDnD.serialize, $.tableDnD) and I don't see how can that preserve current "this", much less put it into currentTable where serialize is searching for it.
(Actually, I get it work by setting currentTable manually before calling it, but that doesn't look nice.)