Remove use of goog.async.nextTick
This commit is contained in:
@@ -5,7 +5,6 @@
|
|||||||
goog.provide('ol.Map');
|
goog.provide('ol.Map');
|
||||||
goog.provide('ol.MapProperty');
|
goog.provide('ol.MapProperty');
|
||||||
|
|
||||||
goog.require('goog.async.nextTick');
|
|
||||||
goog.require('ol');
|
goog.require('ol');
|
||||||
goog.require('ol.Collection');
|
goog.require('ol.Collection');
|
||||||
goog.require('ol.MapBrowserEvent');
|
goog.require('ol.MapBrowserEvent');
|
||||||
@@ -1314,7 +1313,7 @@ ol.Map.prototype.renderFrame_ = function(time) {
|
|||||||
this.dispatchEvent(
|
this.dispatchEvent(
|
||||||
new ol.MapEvent(ol.MapEventType.POSTRENDER, this, frameState));
|
new ol.MapEvent(ol.MapEventType.POSTRENDER, this, frameState));
|
||||||
|
|
||||||
goog.async.nextTick(this.handlePostRender, this);
|
ol.global.setTimeout(this.handlePostRender.bind(this), 0);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
goog.provide('ol.source.TileUTFGrid');
|
goog.provide('ol.source.TileUTFGrid');
|
||||||
|
|
||||||
goog.require('goog.async.nextTick');
|
|
||||||
goog.require('ol');
|
goog.require('ol');
|
||||||
goog.require('ol.Attribution');
|
goog.require('ol.Attribution');
|
||||||
goog.require('ol.Tile');
|
goog.require('ol.Tile');
|
||||||
@@ -140,9 +139,9 @@ ol.source.TileUTFGrid.prototype.forDataAtCoordinateAndResolution = function(
|
|||||||
tile.forDataAtCoordinate(coordinate, callback, opt_this, opt_request);
|
tile.forDataAtCoordinate(coordinate, callback, opt_this, opt_request);
|
||||||
} else {
|
} else {
|
||||||
if (opt_request === true) {
|
if (opt_request === true) {
|
||||||
goog.async.nextTick(function() {
|
ol.global.setTimeout(function() {
|
||||||
callback.call(opt_this, null);
|
callback.call(opt_this, null);
|
||||||
});
|
}, 0);
|
||||||
} else {
|
} else {
|
||||||
callback.call(opt_this, null);
|
callback.call(opt_this, null);
|
||||||
}
|
}
|
||||||
@@ -392,9 +391,9 @@ ol.source.TileUTFGridTile_.prototype.forDataAtCoordinate = function(coordinate,
|
|||||||
this.loadInternal_();
|
this.loadInternal_();
|
||||||
} else {
|
} else {
|
||||||
if (opt_request === true) {
|
if (opt_request === true) {
|
||||||
goog.async.nextTick(function() {
|
ol.global.setTimeout(function() {
|
||||||
callback.call(opt_this, this.getData(coordinate));
|
callback.call(opt_this, this.getData(coordinate));
|
||||||
}, this);
|
}.bind(this), 0);
|
||||||
} else {
|
} else {
|
||||||
callback.call(opt_this, this.getData(coordinate));
|
callback.call(opt_this, this.getData(coordinate));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user