Name event handlers more consistently

This commit is contained in:
Tom Payne
2012-07-17 14:06:01 +02:00
parent ab702c29e6
commit 117321ea43
3 changed files with 3 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ ol.webgl.LayerRenderer.prototype.getMap = function() {
/**
*/
ol.webgl.LayerRenderer.prototype.handleContextLost = goog.nullFunction;
ol.webgl.LayerRenderer.prototype.handleWebGLContextLost = goog.nullFunction;
/**

View File

@@ -359,7 +359,7 @@ ol.webgl.Map.prototype.handleWebGLContextLost = function(event) {
this.programCache_ = {};
this.textureCache_ = {};
goog.object.forEach(this.layerRenderers, function(layerRenderer) {
layerRenderer.handleContextLost();
layerRenderer.handleWebGLContextLost();
});
};

View File

@@ -90,7 +90,7 @@ ol.webgl.TileLayerRenderer.prototype.disposeInternal = function() {
/**
*/
ol.webgl.TileLayerRenderer.prototype.handleContextLost = function() {
ol.webgl.TileLayerRenderer.prototype.handleWebGLContextLost = function() {
this.texture_ = null;
this.renderbuffer_ = null;
this.framebuffer_ = null;