Remove use of goog.array.sort

Fixes #4160
This commit is contained in:
Frederic Junod
2015-11-19 16:53:04 +01:00
parent 627abaf1a7
commit a4fb2501d8
10 changed files with 12 additions and 20 deletions

View File

@@ -1979,7 +1979,7 @@ ol.render.canvas.ReplayGroup.prototype.replay = function(
/** @type {Array.<number>} */
var zs = Object.keys(this.replaysByZIndex_).map(Number);
goog.array.sort(zs);
zs.sort();
// setup clipping so that the parts of over-simplified geometries are not
// visible outside the current extent when panning
@@ -2035,7 +2035,7 @@ ol.render.canvas.ReplayGroup.prototype.replayHitDetection_ = function(
featureCallback, opt_hitExtent) {
/** @type {Array.<number>} */
var zs = Object.keys(this.replaysByZIndex_).map(Number);
goog.array.sort(zs, function(a, b) { return b - a; });
zs.sort(function(a, b) { return b - a; });
var i, ii, j, replays, replay, result;
for (i = 0, ii = zs.length; i < ii; ++i) {