Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tableDnDSerialize is not working as advertized #72

Open
hkmaly opened this issue May 6, 2017 · 0 comments
Open

tableDnDSerialize is not working as advertized #72

hkmaly opened this issue May 6, 2017 · 0 comments

Comments

@hkmaly
Copy link

hkmaly commented May 6, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant