js/jRespond.js
function() {

			// get current width
			var w = winWidth();

			// if there is a change speed up the timer and fire the returnBreakpoint function
			if (w !== resizeW) {
				resizeTmrSpd = resizeTmrFast;

				returnBreakpoint(w);

			// otherwise keep on keepin' on
			} else {
				resizeTmrSpd = resizeTmrSlow;
			}

			resizeW = w;

			// calls itself on a setTimeout
			setTimeout(checkResize, resizeTmrSpd);
		}
function() {

			// get current width
			var w = winWidth();

			// if there is a change speed up the timer and fire the returnBreakpoint function
			if (w !== resizeW) {
				resizeTmrSpd = resizeTmrFast;

				returnBreakpoint(w);

			// otherwise keep on keepin' on
			} else {
				resizeTmrSpd = resizeTmrSlow;
			}

			resizeW = w;

			// calls itself on a setTimeout
			setTimeout(checkResize, resizeTmrSpd);
		}
function ( ) { // get current width var w = winWidth ( ) ; // if there is a change speed up the timer and fire the returnBreakpoint function if ( w !== resizeW ) { resizeTmrSpd = resizeTmrFast ; returnBreakpoint ( w ) ; // otherwise keep on keepin' on } else { resizeTmrSpd = resizeTmrSlow ; } resizeW = w ; // calls itself on a setTimeout setTimeout ( checkResize , resizeTmrSpd ) ; }
self-calling function that checks the browser width and delegates if it detects a change
self - calling function that checks the browser width and delegates if it detects a change