mirror of
https://github.com/Noratrieb/slides.git
synced 2026-01-16 17:35:06 +01:00
polyfill element.closest for ie11
This commit is contained in:
parent
e6244a57b5
commit
b7487b8b4f
10 changed files with 45 additions and 34 deletions
|
|
@ -148,7 +148,7 @@ export default function( revealElement, options ) {
|
|||
|
||||
// Embedded decks use the reveal element as their viewport
|
||||
if( config.embedded === true ) {
|
||||
dom.viewport = revealElement.closest( '.reveal-viewport' ) || revealElement;
|
||||
dom.viewport = Util.closest( revealElement, '.reveal-viewport' ) || revealElement;
|
||||
}
|
||||
// Full-page decks use the body as their viewport
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue