mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-07-31 11:50:25 +02:00
switch old toArray helper to Array.from
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { extend, toArray, createStyleSheet } from '../utils/util.js'
|
||||
import { queryAll, extend, createStyleSheet } from '../utils/util.js'
|
||||
|
||||
/**
|
||||
* Automatically animates matching elements across
|
||||
@@ -87,12 +87,12 @@ export default class AutoAnimate {
|
||||
reset() {
|
||||
|
||||
// Reset slides
|
||||
toArray( this.Reveal.getRevealElement().querySelectorAll( '[data-auto-animate]:not([data-auto-animate=""])' ) ).forEach( element => {
|
||||
queryAll( this.Reveal.getRevealElement(), '[data-auto-animate]:not([data-auto-animate=""])' ).forEach( element => {
|
||||
element.dataset.autoAnimate = '';
|
||||
} );
|
||||
|
||||
// Reset elements
|
||||
toArray( this.Reveal.getRevealElement().querySelectorAll( '[data-auto-animate-target]' ) ).forEach( element => {
|
||||
queryAll( this.Reveal.getRevealElement(), '[data-auto-animate-target]' ).forEach( element => {
|
||||
delete element.dataset.autoAnimateTarget;
|
||||
} );
|
||||
|
||||
|
Reference in New Issue
Block a user