Using parameters with functions in plugins doesn't work
So, I have made this sample:
http://ceromedia.dk/test.php
The problem is, when I call the $.undo function, I pass a custom UndoFn with some parameters, and it works perfectly IF I only remove exactly ONE item and undo that remove afterward. If I remove more than one item, every time I undo that, It restores the last item i removed again and again.
It has probably something to do with global namespace etc, but I cant seem to find the bug.
So: Remove 3 items, and undo all 3. Then you can see the problem.
Does anybody know what I can do?