Name event handlers more consistently

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

No files matched your search

+1 -1
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;
/**
+1 -1
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();
});
};
+1 -1
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;