I’m fully up to date, Haxe 3.4.4, Openfl 6.5.0, Lime 5.8.2 , and am seeing a new error in html5 target code across all browsers i test on.
In IE 11, it occurs during loading and prevent the game from running.
In Chrome 62 and Firefox 57 it only occurs when leaving the game (e.g. if a page is refreshed the error will pop up briefly).
IE error , SCRIPT5007: Unable to get property ‘onClose’ of undefined or null reference
handleWindowEvent: function(event) {
if(this.parent.__windows[0] != null) {
var _g = event.type;
switch(_g) {
case "beforeunload":
if(!event.defaultPrevented) {
this.parent.__windows[0].onClose.dispatch();
if(this.parent.__windows[0].onClose.canceled) {
Unable to get property 'onClose' of undefined or null reference
event.preventDefault();
}
}
break;
it seems that this.parent.__windows[0].onClose.dispatch(); makes this.parent.__windows[0] empty !