There is a suspicion that I found a bug in
FancyBox (jquery), I suggest to look.
Actually made an example:
webactives.ru/fancybox/index.htmlthe idea is that when you call $ .fancybox.resize (); (line 983 of the
www.fancybox.net/js/fancybox/jquery.fancybox-1.3.1.js file) a call to jquery
.replaceWith is called , and all DOM handlers that hang inside this element fly off. Actually an example of this is intended to demonstrate.
my solution to the problem: replace the line
c.replaceWith (c.children ());
on the lines
c.children (). appendTo (inner);
c.remove ();
Actually I will look at the implementation of replaceWith - there is a suspicion that this is actually a bug.