There is a suspicion that I found a bug in FancyBox / Jquery

    There is a suspicion that I found a bug in FancyBox (jquery), I suggest looking.
    I actually made an example: webactives.ru/fancybox/index.html the
    idea is that when you call $ .fancybox.resize (); (line 983 of the file www.fancybox.net/js/fancybox/jquery.fancybox-1.3.1.js ) jquery .replaceWith is called , and all the DOM handlers that hung inside this element fly off. Actually an example is intended to demonstrate this.

    my solution to the problem: replace the string
    	c.replaceWith (c.children ()); 

    per line
    	c.children (). appendTo (inner);
    	c.remove ();


    Actually I will watch the implementation of replaceWith - there is a suspicion that this is actually a bug.

    Also popular now: