lib/client/dom_spotting.js
function initialCheck(attr_name) {

	var elements = document.querySelectorAll('[' + attr_name + ']'),
	    element,
	    value,
	    i,
	    l;

	for (i = 0; i < elements.length; i++) {
		element = elements[i];
		value = element.getAttribute(attr_name);

		if (initial_seen.get(element)) {
			continue;
		}

		if (attributes[attr_name]) {
			initial_seen.set(element, true);
			for (l = 0; l < attributes[attr_name].length; l++) {
				attributes[attr_name][l](element, value, null, true);
			}
		}
	}
}
function initialCheck(attr_name) {

	var elements = document.querySelectorAll('[' + attr_name + ']'),
	    element,
	    value,
	    i,
	    l;

	for (i = 0; i < elements.length; i++) {
		element = elements[i];
		value = element.getAttribute(attr_name);

		if (initial_seen.get(element)) {
			continue;
		}

		if (attributes[attr_name]) {
			initial_seen.set(element, true);
			for (l = 0; l < attributes[attr_name].length; l++) {
				attributes[attr_name][l](element, value, null, true);
			}
		}
	}
}
function initialCheck ( attr_name ) { var elements = document . querySelectorAll ( '[' + attr_name + ']' ) , element , value , i , l ; for ( i = 0 ; i < elements . length ; i ++ ) { element = elements [ i ] ; value = element . getAttribute ( attr_name ) ; if ( initial_seen . get ( element ) ) { continue ; } if ( attributes [ attr_name ] ) { initial_seen . set ( element , true ) ; for ( l = 0 ; l < attributes [ attr_name ] . length ; l ++ ) { attributes [ attr_name ] [ l ] ( element , value , null , true ) ; } } } }
Do an initial check for the given attribute name

@author   Jelle De Loecker <jelle@develry.be>
@since    1.0.0
@version  1.1.2

@param    {String}   attr_name
Do an initial check for the given attribute name