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
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
ol.webgl.Context.prototype.disposeInternal = function() {
|
ol.webgl.Context.prototype.disposeInternal = function() {
|
||||||
|
ol.events.unlistenAll(this.canvas_);
|
||||||
var gl = this.getGL();
|
var gl = this.getGL();
|
||||||
if (!gl.isContextLost()) {
|
if (!gl.isContextLost()) {
|
||||||
var key;
|
var key;
|
||||||
|
|||||||
Reference in New Issue
Block a user