bruce-models 0.8.3 → 0.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3811,10 +3811,6 @@ function getCellSizeFromHeight(height) {
3811
3811
  }
3812
3812
  return 1.5;
3813
3813
  }
3814
- function getCell(cells, cellSize, lon, maxLon, lat, maxLat) {
3815
- var id = cellSize + "_" + lon + "_" + maxLon + "_" + lat + "_" + maxLat;
3816
- return cells[id];
3817
- }
3818
3814
  function isCellFetched(cell) {
3819
3815
  if (cell.Fetched) {
3820
3816
  return true;
@@ -3823,9 +3819,9 @@ function isCellFetched(cell) {
3823
3819
  }
3824
3820
  function getOrCreateCell(cells, cellSize, lon, maxLon, lat, maxLat) {
3825
3821
  var id = cellSize + "_" + lon + "_" + maxLon + "_" + lat + "_" + maxLat;
3826
- var cell = getCell(cells, cellSize, lon, maxLon, lat, maxLat);
3822
+ var cell = cells[id];
3827
3823
  if (!cell) {
3828
- cell = new Cell();
3824
+ cell = cells[id] = new Cell();
3829
3825
  cell.Boundaries = {
3830
3826
  minLatitude: lat,
3831
3827
  maxLatitude: maxLat,