summaryrefslogtreecommitdiff
path: root/javascript/jsapi/bindings/window.bnd
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2012-11-01 21:13:14 +0000
committerVincent Sanders <vince@kyllikki.org>2012-11-01 21:13:14 +0000
commit2b8cdf1f295cc65c5f6935f067289fdb35e3349d (patch)
tree4d80eedac3eb18b9d1cfa7fab90c52a54796d82a /javascript/jsapi/bindings/window.bnd
parent8f08f820f4d17173c08d121a1bd50e1afe66724c (diff)
downloadnetsurf-2b8cdf1f295cc65c5f6935f067289fdb35e3349d.tar.gz
netsurf-2b8cdf1f295cc65c5f6935f067289fdb35e3349d.tar.bz2
add HTMLElement interface binding
Diffstat (limited to 'javascript/jsapi/bindings/window.bnd')
-rw-r--r--javascript/jsapi/bindings/window.bnd9
1 files changed, 7 insertions, 2 deletions
diff --git a/javascript/jsapi/bindings/window.bnd b/javascript/jsapi/bindings/window.bnd
index ba2db52b2..beb2b128e 100644
--- a/javascript/jsapi/bindings/window.bnd
+++ b/javascript/jsapi/bindings/window.bnd
@@ -31,11 +31,11 @@ operation prompt %{
%}
getter window %{
- jsretval = OBJECT_TO_JSVAL(obj);
+ jsret = obj;
%}
getter self %{
- jsretval = OBJECT_TO_JSVAL(obj);
+ jsret = obj;
%}
api init %{
@@ -90,6 +90,11 @@ api init %{
return NULL;
}
+ user_proto = jsapi_InitClass_HTMLElement(cx, prototype);
+ if (user_proto == NULL) {
+ return NULL;
+ }
+
%}
api new %{