Only listen for first event

This commit is contained in:
Tim Schaub
2013-02-07 14:06:05 -07:00
parent e079c19413
commit 3c4d218ec5
3 changed files with 3 additions and 3 deletions

View File

@@ -131,7 +131,7 @@ ol.renderer.dom.TileLayer.prototype.renderFrame =
tileState = tile.getState();
if (tileState == ol.TileState.IDLE) {
goog.events.listen(tile, goog.events.EventType.CHANGE,
goog.events.listenOnce(tile, goog.events.EventType.CHANGE,
this.handleTileChange, false, this);
this.updateWantedTiles(frameState.wantedTiles, tileSource, tileCoord);
tileCenter = tileGrid.getTileCoordCenter(tileCoord);