function scanSeries(series){
  var hasRefs = false
  for(var x in series.images){//loop series images
    var avatar = series.images[x].avatar
    if(avatar && avatar.dataUrl){
      var url = avatar.dataUrl
      if(isExternalRef(url)){
        hasRefs = true;
      }
    }

    var figure = series.images[x].figure
    if(figure && figure.dataUrl){
      var url = figure.dataUrl
      if(isExternalRef(url)){
        hasRefs = true;
      }
    }
  }

  series.hasRefs = hasRefs

  return series
}
/* detects things about an imported series */
detects things about an imported series
detects things about an imported series
function scanSeries(series){
  var hasRefs = false
  for(var x in series.images){
    var avatar = series.images[x].avatar
    if(avatar && avatar.dataUrl){
      var url = avatar.dataUrl
      if(isExternalRef(url)){
        hasRefs = true;
      }
    }
    var figure = series.images[x].figure
    if(figure && figure.dataUrl){
      var url = figure.dataUrl
      if(isExternalRef(url)){
        hasRefs = true;
      }
    }
  }
  series.hasRefs = hasRefs
  return series
}
function scanSeries ( series ) { var hasRefs = false for ( var x in series . images ) { var avatar = series . images [ x ] . avatar if ( avatar && avatar . dataUrl ) { var url = avatar . dataUrl if ( isExternalRef ( url ) ) { hasRefs = true ; } } var figure = series . images [ x ] . figure if ( figure && figure . dataUrl ) { var url = figure . dataUrl if ( isExternalRef ( url ) ) { hasRefs = true ; } } } series . hasRefs = hasRefs return series }
detects things about an imported series
detects things about an imported series
//loop series images