lib/angular-mobile.js
function checkAllowableRegions(touchCoordinates, x, y) {
    for (var i = 0; i < touchCoordinates.length; i += 2) {
      if (hit(touchCoordinates[i], touchCoordinates[i+1], x, y)) {
        touchCoordinates.splice(i, i + 2);
        return true; // allowable region
      }
    }
    return false; // No allowable region; bust it.
  }
function checkAllowableRegions(touchCoordinates, x, y) {
    for (var i = 0; i < touchCoordinates.length; i += 2) {
      if (hit(touchCoordinates[i], touchCoordinates[i+1], x, y)) {
        touchCoordinates.splice(i, i + 2);
        return true; // allowable region
      }
    }
    return false; // No allowable region; bust it.
  }
function checkAllowableRegions ( touchCoordinates , x , y ) { for ( var i = 0 ; i < touchCoordinates . length ; i += 2 ) { if ( hit ( touchCoordinates [ i ] , touchCoordinates [ i + 1 ] , x , y ) ) { touchCoordinates . splice ( i , i + 2 ) ; return true ; // allowable region } } return false ; // No allowable region; bust it. }
Checks a list of allowable regions against a click location. Returns true if the click should be allowed. Splices out the allowable region from the list after it has been used.
Checks a list of allowable regions against a click location . Returns true if the click should be allowed . Splices out the allowable region from the list after it has been used .