cq-prolyfill.js
function onDomMutate(event) {

	var mutation = {
		addedNodes: [],
		removedNodes: [],
	};
	mutation[
		(event.type === 'DOMNodeInserted' ? 'added' : 'removed') + 'Nodes'
	] = [event.target];

	domMutations.push(mutation);

	// Delay the call to checkMutations()
	setTimeout(function() {
		checkMutations(domMutations);
		domMutations = [];
	});

}
function onDomMutate(event) {

	var mutation = {
		addedNodes: [],
		removedNodes: [],
	};
	mutation[
		(event.type === 'DOMNodeInserted' ? 'added' : 'removed') + 'Nodes'
	] = [event.target];

	domMutations.push(mutation);

	// Delay the call to checkMutations()
	setTimeout(function() {
		checkMutations(domMutations);
		domMutations = [];
	});

}
function onDomMutate ( event ) { var mutation = { addedNodes : [ ] , removedNodes : [ ] , } ; mutation [ ( event . type === 'DOMNodeInserted' ? 'added' : 'removed' ) + 'Nodes' ] = [ event . target ] ; domMutations . push ( mutation ) ; // Delay the call to checkMutations() setTimeout ( function ( ) { checkMutations ( domMutations ) ; domMutations = [ ] ; } ) ; }
Event handler for DOMNodeInserted and DOMNodeRemoved

@param  {MutationEvent} event
Event handler for DOMNodeInserted and DOMNodeRemoved