jquery-modal
jquery-modal copied to clipboard
feat: modal:initialized callback + preload param + $.modal.get method. Fixes #279
- New event
modal:initializedthat runs once the modal content has been loaded. - New
preloadparam, defaults tofalse. When set to true, the modal doesn't open on initialization, and stays preloaded until we.open()it ourselves. - New
$.modal.get($elm)method that returns the modal instance of the linked element.
These changes should also fix #279.
As a side note, I couldn't get gulp to work with the version linked in package.json, so the minification comes from an automated VSCode tool.
Gulp 3 doesn't work with Node 11+, maybe upgrading it would be a good idea.