@@ -3,8 +3,9 @@ import style from '../functions/style'
33import initialize from '../functions/initialize'
44import { Sequence } from '../functions/sequence'
55
6- import { getNode , getNodes , logger } from '../../utils/core'
7- import { deepAssign , each , nextUniqueId } from '../../utils/generic'
6+ import { deepAssign , each , getNode , getNodes } from 'tealight'
7+ import { logger } from '../../utils/core'
8+ import { nextUniqueId } from '../../utils/generic'
89import { isMobile } from '../../utils/browser'
910
1011export default function reveal ( target , options , interval , sync ) {
@@ -63,9 +64,9 @@ export default function reveal (target, options, interval, sync) {
6364 const config = deepAssign ( { } , element . config || this . defaults , options )
6465
6566 /**
66- * Verify the current device passes our platform configuration,
67- * and cache the result for the rest of the loop.
68- */
67+ * Verify the current device passes our platform configuration,
68+ * and cache the result for the rest of the loop.
69+ */
6970 let disabled
7071 {
7172 if ( disabled == null ) {
@@ -115,10 +116,10 @@ export default function reveal (target, options, interval, sync) {
115116 } , [ ] )
116117
117118 /**
118- * Modifying the DOM via setAttribute needs to be handled
119- * separately from reading computed styles in the map above
120- * for the browser to batch DOM changes (limiting reflows)
121- */
119+ * Modifying the DOM via setAttribute needs to be handled
120+ * separately from reading computed styles in the map above
121+ * for the browser to batch DOM changes (limiting reflows)
122+ */
122123 each ( elements , element => {
123124 this . store . elements [ element . id ] = element
124125 element . node . setAttribute ( 'data-sr-id' , element . id )
@@ -144,16 +145,16 @@ export default function reveal (target, options, interval, sync) {
144145 }
145146
146147 /**
147- * If reveal wasn't invoked by sync, we want to
148- * make sure to add this call to the history.
149- */
148+ * If reveal wasn't invoked by sync, we want to
149+ * make sure to add this call to the history.
150+ */
150151 if ( ! sync ) {
151152 this . store . history . push ( { target, options, interval } )
152153
153154 /**
154- * Push initialization to the event queue, giving
155- * multiple reveal calls time to be interpreted.
156- */
155+ * Push initialization to the event queue, giving
156+ * multiple reveal calls time to be interpreted.
157+ */
157158 if ( this . initTimeout ) {
158159 window . clearTimeout ( this . initTimeout )
159160 }
0 commit comments