clean dom tree after closing popup #5150

Closed
TrejGun opened this Issue Oct 10, 2012 · 1 comment

2 participants

@TrejGun

If i want to create popup on the fly

var popup = $("<div/>", {text: "my text"}).popup().popup("open");

its completly impossible to clean dom tree after it was closed

because destroy method in popupafterclose event will ause endless loop

popup.on("popupafterclose", function () {
$(this).popup("destroy"); 
});
@gabrielschulhof

This is a duplicate of #5123. Please try with the latest from master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment