1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-11 05:29:28 -04:00

DOM: Moved invocation of done_ecmascript_obj to the done_dom_node_data.

This commit is contained in:
Witold Filipczyk 2007-06-13 12:24:00 +02:00 committed by Witold Filipczyk
parent fd1dcfd781
commit 3923a8c4fc

View File

@ -433,6 +433,16 @@ done_dom_node_data(struct dom_node *node)
if (node->allocated)
done_dom_string(&node->string);
#ifdef CONFIG_ECMASCRIPT
#ifdef CONFIG_SPIDERMONKEY
if (node->type == DOM_NODE_ELEMENT && node->data.element.html_data) {
done_dom_node_html_data(node);
if (node->ecmascript_obj)
done_dom_node_ecmascript_obj(node);
}
#endif
#endif
mem_free(node);
}
@ -459,19 +469,10 @@ done_dom_node(struct dom_node *node)
del_from_dom_node_list(data->proc_instruction.map, node);
break;
default:
break;
default:
break;
}
}
#ifdef CONFIG_ECMASCRIPT
#ifdef CONFIG_SPIDERMONKEY
if (node->type == DOM_NODE_ELEMENT && node->data.element.html_data) {
done_dom_node_html_data(node);
if (node->ecmascript_obj)
done_dom_node_ecmascript_obj(node);
}
#endif
#endif
done_dom_node_data(node);
}