Fire change event every time state changes

This commit is contained in:
Tim Schaub
2015-02-17 11:09:16 -07:00
parent eb1a46cf7d
commit bf35b40b11
2 changed files with 12 additions and 4 deletions
+1
View File
@@ -136,6 +136,7 @@ ol.ImageTile.prototype.handleImageLoad_ = function() {
ol.ImageTile.prototype.load = function() {
if (this.state == ol.TileState.IDLE) {
this.state = ol.TileState.LOADING;
this.changed();
goog.asserts.assert(goog.isNull(this.imageListenerKeys_));
this.imageListenerKeys_ = [
goog.events.listenOnce(this.image_, goog.events.EventType.ERROR,