<commit_before>import initialize from '../functions/initialize'
import reveal from './reveal'


/**
 * Re-runs `reveal()` for each record stored in history, effectively capturing
 * any content loaded asynchronously that matches existing reveal set targets.
 * @return {object} - The current ScrollReveal instance.
 */
export default function sync () {
	// this.store.history.forEach(record => {
	//   reveal.call(this, record.target, record.config, record.interval, false)
	// })
	//
	// initialize.call(this)
	//
	return this
}<commit_msg>add sync method<commit_after>import initialize from '../functions/initialize'
import reveal from './reveal'


/**
 * Re-runs the reveal method for each record stored in history, useful
 * for capturing new content asynchronously loaded into the DOM.
 *
 * @return {object} - The current ScrollReveal instance.
 */
export default function sync () {
	this.store.history.forEach(record => {
	  reveal.call(this, record.target, record.options, /*record.interval,*/ true)
	})

	initialize.call(this)

	return this
}
{'fraction_non_alphanumeric': 0.12464319695528069, 'fraction_numerical': 0.0, 'mean_word_length': 3.985781990521327, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3685389', 'n_tokens_mistral': 304, 'n_tokens_neox': 289, 'n_words': 96}