Unregister all listeners on the WebGL context's canvas

This commit is contained in:
Tim Schaub
2016-03-03 07:26:45 -07:00
parent afb64ed2bf
commit 2f9d4e68eb

View File

@@ -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;