cq-prolyfill.js
function updateClassesWrite(treeNodes) {
	var node, j;
	for (var i = 0; i < treeNodes.length; i++) {
		node = treeNodes[i];
		for (j = 0; j < node._changes.length; j++) {
			(node._changes[j][0] ? addQuery : removeQuery)(node._element, node._changes[j][1]);
		}
		node._changes = [];
		updateClassesWrite(node._children);
	}
}
function updateClassesWrite(treeNodes) {
	var node, j;
	for (var i = 0; i < treeNodes.length; i++) {
		node = treeNodes[i];
		for (j = 0; j < node._changes.length; j++) {
			(node._changes[j][0] ? addQuery : removeQuery)(node._element, node._changes[j][1]);
		}
		node._changes = [];
		updateClassesWrite(node._children);
	}
}
function updateClassesWrite ( treeNodes ) { var node , j ; for ( var i = 0 ; i < treeNodes . length ; i ++ ) { node = treeNodes [ i ] ; for ( j = 0 ; j < node . _changes . length ; j ++ ) { ( node . _changes [ j ] [ 0 ] ? addQuery : removeQuery ) ( node . _element , node . _changes [ j ] [ 1 ] ) ; } node . _changes = [ ] ; updateClassesWrite ( node . _children ) ; } }
Update classes write step

@param  {Array.<{_element: Element, _children: array, _queries: array, _changes: array, _done: boolean}>} treeNodes
Update classes write step