summaryrefslogtreecommitdiff
path: root/javascript
diff options
context:
space:
mode:
Diffstat (limited to 'javascript')
-rw-r--r--javascript/jsapi/bindings/dom.bnd6
1 files changed, 1 insertions, 5 deletions
diff --git a/javascript/jsapi/bindings/dom.bnd b/javascript/jsapi/bindings/dom.bnd
index 0f54571b9..362c828f6 100644
--- a/javascript/jsapi/bindings/dom.bnd
+++ b/javascript/jsapi/bindings/dom.bnd
@@ -7,15 +7,11 @@ operation getElementById %{
dom_element *element;
dom_exception exc;
- LOG(("elementId_len %d elementId %s",elementId_len,elementId));
-
dom_string_create((unsigned char*)elementId, elementId_len, &elementId_dom);
- LOG(("dom string %p", elementId_dom));
-
exc = dom_document_get_element_by_id(private->node, elementId_dom, &element);
if ((exc == DOM_NO_ERR) && (element != NULL)) {
- jsret = jsapi_new_HTMLElement(cx, NULL, JS_GetGlobalObject(cx), element, private->htmlc);
+ jsret = jsapi_new_HTMLElement(cx, NULL, NULL, element, private->htmlc);
}
%}