examples/ionic1/www/lib/ionic/js/ionic.bundle.js
function calculateMaxValue(maximum) {
    var distance = ($attrs.distance || '2.5%').trim();
    var isPercent = distance.indexOf('%') !== -1;
    return isPercent ?
    maximum * (1 - parseFloat(distance) / 100) :
    maximum - parseFloat(distance);
  }
function calculateMaxValue(maximum) {
    var distance = ($attrs.distance || '2.5%').trim();
    var isPercent = distance.indexOf('%') !== -1;
    return isPercent ?
    maximum * (1 - parseFloat(distance) / 100) :
    maximum - parseFloat(distance);
  }
function calculateMaxValue ( maximum ) { var distance = ( $attrs . distance || '2.5%' ) . trim ( ) ; var isPercent = distance . indexOf ( '%' ) !== - 1 ; return isPercent ? maximum * ( 1 - parseFloat ( distance ) / 100 ) : maximum - parseFloat ( distance ) ; }
determine pixel refresh distance based on % or value
determine pixel refresh distance based on % or value