How to get popup element in event callbacks for gallery-mode?

Author: auroraCreated Oct 18, 2024Updated Oct 18, 2024

Is there any way to get the same as "instance.st." when in gallery mode? The property is missing there, but as i can use parseElement to identify the popup that is going to open, i wonder why it is missing?

Source: dimsemenov/Magnific-Popup