gulpfile.js
/**
 * Checks for circular references in the partials includes
 * @param  {object} t The object being checked
 * @return {boolean}   True if there is no circular reference
 */
Checks for circular references in the partials includes
@param  {object} t The object being checked
@return {boolean}   True if there is no circular reference
Checks for circular references in the partials includes @param { object } t The object being checked @return { boolean } True if there is no circular reference
function validReference(t, file) {
  if ( ! t.$parent ) {
    return true;
  }
  var tmp = t;
  while ( tmp = tmp.$parent ) {
    if ( file === tmp.file ) {
      return false;
    }
  }
  return true;
}
function validReference ( t , file ) { if ( ! t . $parent ) { return true ; } var tmp = t ; while ( tmp = tmp . $parent ) { if ( file === tmp . file ) { return false ; } } return true ; }
Checks for circular references in the partials includes
 @param  {object} t The object being checked
 @return {boolean}   True if there is no circular reference
Checks for circular references in the partials includes @param { object } t The object being checked @return { boolean } True if there is no circular reference
// check if the current file was included in the past