TableDnD icon indicating copy to clipboard operation
TableDnD copied to clipboard

tableDnDSerialize is not working as advertized

Open hkmaly opened this issue 7 years ago • 0 comments

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.)

hkmaly avatar May 06 '17 06:05 hkmaly