mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-24 06:06:09 +03:00
Cleaned code according to comments in PR
This commit is contained in:
parent
f8ad0acfa4
commit
0bdd807d9d
@ -1437,7 +1437,6 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
|
||||
}
|
||||
}
|
||||
|
||||
this._sortTiles(best);
|
||||
return best;
|
||||
},
|
||||
|
||||
@ -1931,8 +1930,8 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
|
||||
return [tile];
|
||||
}
|
||||
previousBest.push(tile);
|
||||
this._sortTiles(previousBest);
|
||||
if (previousBest.length > maxNTiles) {
|
||||
this._sortTiles(previousBest);
|
||||
previousBest.pop();
|
||||
}
|
||||
return previousBest;
|
||||
|
Loading…
Reference in New Issue
Block a user