Fix #34: Made dialog clear method public.