Ticket #8476 (closed bug: invalid)
Strange behavior with appendTo
|Reported by:||fguillot@…||Owned by:|
I'm trying to create my first jQuery plugin, a "game of fifteen" (taquin in french) and everything is fine except I have a very strange behavior when using the appendTo method.
Here is a test case. To reproduce the bug, click Start once, then Reset twice. It will trigger on the second reset (with any settings). Reset just rebuild the board game, keeping the same settings.
While debugging myself, I've noticed that on line 5558 of jQuery 1.5.1 (method "clean") there is this array created : "var ret = ;". When the bug triggers, if you put a break point after this line, the array is shown as empty in the firebug spy window, but if you open the spy, you can see that there are "1" in the array; one for each time the bug triggered. This is what drives jQuery crazy.