Tell me how to initiate the cancellation of the jquery plugin. I use the magnifying glass plugin http://pcvector.net/scripts/zoom/340-loupe-lupa.html I add an event to the magnifying glass on the button

loupeInit = function () { $('img').loupe({ width: 400, height: 250, loupe: 'loupe' }) }; 

How to implement a cancellation? There is no destruction event in the plugin documentation, I tried to transfer .loupe(false) does not work. I tried to assign to esc an event of canceling and deleting all Dom elements that the plugin creates, everything is deleted, but re-initiation to the original button does not work

Magnifier generates in body

 <div class="loupe" style="width: 400px; height: 250px; position: absolute; overflow: hidden; left: 305px; top: -122px; display: none;">. <img src="images/1.jpg" style="position: absolute; left: -1781px; top: 113px;"> </div> 

Maybe someone did this, tell me, or there are more successful plugins with similar

    0