i dont think it should assume you want to remove the overlay when you are just hiding it.
in my case, adding a modal to the page and it can be opened/closed multiple times. currently i'd have to manually reattach the overlay each time, whereas if i really wanted that functionality i dont think its that hard to do hide().remove()
altho since hiding should be async (animations), it might be better to have it take a callback:
overlay.hide(function () {
overlay.remove();
});
what do you think? i can PR this functionality if you want it @visionmedia
i dont think it should assume you want to
removethe overlay when you are just hiding it.in my case, adding a modal to the page and it can be opened/closed multiple times. currently i'd have to manually reattach the overlay each time, whereas if i really wanted that functionality i dont think its that hard to do
hide().remove()altho since hiding should be async (animations), it might be better to have it take a callback:
what do you think? i can PR this functionality if you want it @visionmedia