frameset.onUnload is broken

Koos Vriezen koos.vriezen at xs4all.nl
Sun Nov 24 20:38:49 GMT 2002


Hi,

And this solves it

--- html/html_baseimpl.cpp      2002/11/12 21:36:18     1.169
+++ html/html_baseimpl.cpp      2002/11/24 20:36:05
@@ -501,7 +501,7 @@ void HTMLFrameSetElementImpl::detach()
 {
     if(attached())
         // ### send the event when we actually get removed from the doc
instead of here
-        dispatchHTMLEvent(EventImpl::UNLOAD_EVENT,false,false);
+        getDocument()->dispatchHTMLEvent(EventImpl::UNLOAD_EVENT,false,false);

     HTMLElementImpl::detach();
 }


Koos





More information about the kfm-devel mailing list