Bug 913949 - this.touchEventHandler is undefined. r=mratcliffe

This commit is contained in:
Paul Rouget 2013-09-08 12:29:00 +02:00
parent 1b68dc53a7
commit 9d894a803d

View File

@ -234,9 +234,11 @@ ResponsiveUI.prototype = {
onPageUnload: function() {
if (this.closing)
return;
this.touchEnableBefore = this.touchEventHandler.enabled;
this.disableTouch();
delete this.touchEventHandler;
if (this.touchEventHandler) {
this.touchEnableBefore = this.touchEventHandler.enabled;
this.disableTouch();
delete this.touchEventHandler;
}
},
/**