diff --git a/docs/methods.md b/docs/methods.md index 9971b5a3..ad5f9892 100644 --- a/docs/methods.md +++ b/docs/methods.md @@ -51,7 +51,7 @@ lightbox.on('beforeOpen', () => { pswp.close(); // instantly close and destroy the PhotoSwipe - pswp.close(); + pswp.destroy(); // zoom slide to pswp.currSlide.zoomTo(