function visit(mod) {
			if ( !visited[mod] ) {
				// log.debug("  ", mod);
				visited[mod] = true;
				var pending = mModules[mod] && mModules[mod].pending;
				return Array.isArray(pending) &&
					(pending.indexOf(dependant) >= 0 || pending.some(visit));
			}
			return false;
		}
function visit(mod) {
			if ( !visited[mod] ) {
				// log.debug("  ", mod);
				visited[mod] = true;
				var pending = mModules[mod] && mModules[mod].pending;
				return Array.isArray(pending) &&
					(pending.indexOf(dependant) >= 0 || pending.some(visit));
			}
			return false;
		}
function visit ( mod ) { if ( ! visited [ mod ] ) { // log.debug("  ", mod); visited [ mod ] = true ; var pending = mModules [ mod ] && mModules [ mod ] . pending ; return Array . isArray ( pending ) && ( pending . indexOf ( dependant ) >= 0 || pending . some ( visit ) ) ; } return false ; }
log.debug("checking for a cycle between", this.name, "and", dependant);
log . debug ( checking for a cycle between this . name and dependant ) ;
visit a module