Unregister all listeners on the WebGL context's canvas
This commit is contained in:
@@ -163,6 +163,7 @@ ol.webgl.Context.prototype.deleteBuffer = function(buf) {
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.webgl.Context.prototype.disposeInternal = function() {
|
||||
ol.events.unlistenAll(this.canvas_);
|
||||
var gl = this.getGL();
|
||||
if (!gl.isContextLost()) {
|
||||
var key;
|
||||
|
||||
Reference in New Issue
Block a user