examples/todo/js/modules/footer.js
function(url) {
			var linkEls = moduleEl.querySelectorAll('a');

			for (var i = 0, len = linkEls.length; i < len; i++) {
				if (url === linkEls[i].pathname) {
					linkEls[i].classList.add('selected');
				} else {
					linkEls[i].classList.remove('selected');
				}
			}
		}
function(url) {
			var linkEls = moduleEl.querySelectorAll('a');

			for (var i = 0, len = linkEls.length; i < len; i++) {
				if (url === linkEls[i].pathname) {
					linkEls[i].classList.add('selected');
				} else {
					linkEls[i].classList.remove('selected');
				}
			}
		}
function ( url ) { var linkEls = moduleEl . querySelectorAll ( 'a' ) ; for ( var i = 0 , len = linkEls . length ; i < len ; i ++ ) { if ( url === linkEls [ i ] . pathname ) { linkEls [ i ] . classList . add ( 'selected' ) ; } else { linkEls [ i ] . classList . remove ( 'selected' ) ; } } }
Updates the selected class on the filter links
@param {string} url The current url
@returns {void}
Updates the selected class on the filter links