Search code examples
fotorama

How can I destroy fotorama


I use fotorama with html frames. The html may change during site work. Unfortunately(?), frames disappear from page after first initialization of fotorama. So, I want to destroy fotorama, change html in frames and start it again. How can I do this?


Solution

  • I found answer in source code.

    $(selector).data('fotorama').destroy()