rem: snap : function(aZoom) { if (this.isZoomInRange(aZoom)) { var level = 0; while (this.zoomFactors[level + 1] < aZoom) ++level;   if ((this.zoomFactors[level + 1] - aZoom) < (aZoom - this.zoomFactors[level])) ++level;  aZoom = this.zoomFactors[level]; 
add: snap: function (aVal) { var values = this.fullZoomValues; for (var i = 0; i < values.length; i++) { if (values[i] >= aVal) { if (i > 0 && aVal - values[i - 1] < values[i] - aVal) i--; return values[i]; } 
context:   snap : function(aZoom) {    if (this.isZoomInRange(aZoom)) {      var level = 0;      while (this.zoomFactors[level + 1] < aZoom)        ++level;      // if aZoom closer to [level + 1] than [level], snap to [level + 1]      if ((this.zoomFactors[level + 1] - aZoom) < (aZoom - this.zoomFactors[level]))        ++level;      aZoom = this.zoomFactors[level];    }    return aZoom;  },
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/7f4da1f97849a21530b0ad95c48a99435a44449f/viewZoomOverlay.js/clean/toolkit/content/viewZoomOverlay.js