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); } }
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); }