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

@@ -728,7 +728,7 @@ ol.render.canvas.Immediate.prototype.drawText = goog.abstractMethod;
ol.render.canvas.Immediate.prototype.flush = function() {
/** @type {Array.<number>} */
var zs = Object.keys(this.callbacksByZIndex_).map(Number);
goog.array.sort(zs);
zs.sort();
var i, ii, callbacks, j, jj;
for (i = 0, ii = zs.length; i < ii; ++i) {
callbacks = this.callbacksByZIndex_[zs[i].toString()];