diff options
author | Vincent Sanders <vince@kyllikki.org> | 2012-10-31 01:22:35 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2012-10-31 01:22:35 +0000 |
commit | ede48d60748101e9795050955d934ea6e329d4c5 (patch) | |
tree | a524b6e88bd8b0280b5c1b25b048a5619fc39838 /javascript/jsapi/bindings/window.bnd | |
parent | 79e557bbe83845df21575b525ea8aadbea29f6ce (diff) | |
download | netsurf-ede48d60748101e9795050955d934ea6e329d4c5.tar.gz netsurf-ede48d60748101e9795050955d934ea6e329d4c5.tar.bz2 |
add navigator interface
Diffstat (limited to 'javascript/jsapi/bindings/window.bnd')
-rw-r--r-- | javascript/jsapi/bindings/window.bnd | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/javascript/jsapi/bindings/window.bnd b/javascript/jsapi/bindings/window.bnd index c0b659ea1..9d4a844a1 100644 --- a/javascript/jsapi/bindings/window.bnd +++ b/javascript/jsapi/bindings/window.bnd @@ -79,6 +79,11 @@ api init %{ if (user_proto == NULL) { return NULL; } + + user_proto = jsapi_InitClass_Navigator(cx, prototype); + if (user_proto == NULL) { + return NULL; + } %} api new %{ @@ -99,13 +104,12 @@ api new %{ return NULL; } -/* - private->navigator_obj = jsapi_new_Navigator(cx, window); - if (private->navigator_obj == NULL) { + private->navigator = jsapi_new_Navigator(cx, NULL, newobject); + if (private->navigator == NULL) { free(private); return NULL; } -*/ + /** @todo forms, history, location */ private->console = jsapi_new_Console(cx, newobject); |