Example #1
0
void detach_events(HTMLDocumentNode *doc)
{
    int i;

    if(!doc->event_vector)
        return;

    for(i=0; i < EVENTID_LAST; i++) {
        if(doc->event_vector[i])
            detach_nsevent(doc, event_info[i].name);
    }
}
Example #2
0
void detach_events(HTMLDocumentNode *doc)
{
    if(doc->event_vector) {
        int i;

        for(i=0; i < EVENTID_LAST; i++) {
            if(doc->event_vector[i]) {
                detach_nsevent(doc, event_info[i].name);
                doc->event_vector[i] = FALSE;
            }
        }
    }

    release_nsevents(doc);
}