all files / lib/src/instance/methods/ sync.js

20% Statements 1/5
100% Branches 0/0
0% Functions 0/2
20% Lines 1/5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21                                       
import initialize from '../functions/initialize'
import reveal from './reveal'
 
import { each } from '../../utils/generic'
 
 
/**
 * Re-runs the reveal method for each record stored in history,
 * for capturing new content asynchronously loaded into the DOM.
 */
export default function sync () {
	var this$1 = this;
 
	each(this.store.history, function (record) {
		reveal.call(this$1, record.target, record.options, record.interval, true)
	})
 
	initialize.call(this)
}