This commit is contained in:
Michael Teeuw 2016-05-03 16:59:18 +02:00
parent 14d3bb273c
commit a6da9e8943
2 changed files with 5 additions and 2 deletions

View File

@ -18,7 +18,7 @@ Module.register("alert",{
//Position //Position
position: "center", position: "center",
//shown at startup //shown at startup
welcome_message: true, welcome_message: false,
}, },
getScripts: function() { getScripts: function() {
return ["classie.js", "modernizr.custom.js", "notificationFx.js"]; return ["classie.js", "modernizr.custom.js", "notificationFx.js"];

View File

@ -144,7 +144,10 @@
if (ev.target !== self.ntf) return false; if (ev.target !== self.ntf) return false;
this.removeEventListener(animEndEventName, onEndAnimationFn); this.removeEventListener(animEndEventName, onEndAnimationFn);
} }
self.options.wrapper.removeChild(this);
if (this.parentNode === self.options.wrapper) {
self.options.wrapper.removeChild(this);
}
}; };
if (support.animations) { if (support.animations) {