From 2ca18bca05f0611a348fdcba7864019ddd9196ba Mon Sep 17 00:00:00 2001 From: Dmitry Semenov Date: Wed, 1 Feb 2023 08:40:58 +0200 Subject: [PATCH] docs upd --- docs/methods.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(