js/jRespond.js
function(width) {

			var foundBrkpt = false;

			// look for existing breakpoint based on width
			for (var i = 0; i < mediaBreakpoints.length; i++) {

				// if registered breakpoint found, break out of loop
				if (width >= mediaBreakpoints[i]['enter'] && width <= mediaBreakpoints[i]['exit']) {
					foundBrkpt = true;

					break;
				}
			}

			// if breakpoint is found and it's not the current one
			if (foundBrkpt && curr !== mediaBreakpoints[i]['label']) {
				prev = curr;
				curr = mediaBreakpoints[i]['label'];

				// run the loop
				cycleThrough();

			// or if no breakpoint applies
			} else if (!foundBrkpt && curr !== '') {
				curr = '';

				// run the loop
				cycleThrough();
			}

		}
function(width) {

			var foundBrkpt = false;

			// look for existing breakpoint based on width
			for (var i = 0; i < mediaBreakpoints.length; i++) {

				// if registered breakpoint found, break out of loop
				if (width >= mediaBreakpoints[i]['enter'] && width <= mediaBreakpoints[i]['exit']) {
					foundBrkpt = true;

					break;
				}
			}

			// if breakpoint is found and it's not the current one
			if (foundBrkpt && curr !== mediaBreakpoints[i]['label']) {
				prev = curr;
				curr = mediaBreakpoints[i]['label'];

				// run the loop
				cycleThrough();

			// or if no breakpoint applies
			} else if (!foundBrkpt && curr !== '') {
				curr = '';

				// run the loop
				cycleThrough();
			}

		}
function ( width ) { var foundBrkpt = false ; // look for existing breakpoint based on width for ( var i = 0 ; i < mediaBreakpoints . length ; i ++ ) { // if registered breakpoint found, break out of loop if ( width >= mediaBreakpoints [ i ] [ 'enter' ] && width <= mediaBreakpoints [ i ] [ 'exit' ] ) { foundBrkpt = true ; break ; } } // if breakpoint is found and it's not the current one if ( foundBrkpt && curr !== mediaBreakpoints [ i ] [ 'label' ] ) { prev = curr ; curr = mediaBreakpoints [ i ] [ 'label' ] ; // run the loop cycleThrough ( ) ; // or if no breakpoint applies } else if ( ! foundBrkpt && curr !== '' ) { curr = '' ; // run the loop cycleThrough ( ) ; } }
checks for the correct breakpoint against the mediaBreakpoints list
checks for the correct breakpoint against the mediaBreakpoints list