diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2015-08-04 09:44:26 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2015-08-04 09:44:26 +0100 |
commit | 021b54fb7f32d5107b620df9a56d7e99766b1647 (patch) | |
tree | be226abe0cbb3fb94293acc6e337c894cf6ed934 /javascript/duktape | |
parent | 9cf8d1ffac7f8a3330d30472aff79a112ea2f0ce (diff) | |
download | netsurf-dsilvers/bindducky.tar.gz netsurf-dsilvers/bindducky.tar.bz2 |
Fix window.window bindingdsilvers/bindducky
Diffstat (limited to 'javascript/duktape')
-rw-r--r-- | javascript/duktape/Window.bnd | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/javascript/duktape/Window.bnd b/javascript/duktape/Window.bnd index 2835f4bea..b2b821c3b 100644 --- a/javascript/duktape/Window.bnd +++ b/javascript/duktape/Window.bnd @@ -27,10 +27,6 @@ init Window("struct browser_window *" win, "struct html_content *" htmlc) LOG("win=%p htmlc=%p", priv->win, priv->htmlc); LOG("URL is %s", nsurl_access(browser_window_get_url(priv->win))); - - /* populate window.window */ - duk_dup(ctx, 0); - duk_put_prop_string(ctx, 0, "window"); %} @@ -48,6 +44,12 @@ setter Window::document() LOG("BWUAhAHAHAHAHA FUCK OFF"); %} +getter Window::document() +%{ + duk_dup(ctx, 0); + return 1; +%} + /* prototype needs: #define STEAL_THING(X) \ duk_get_global_string(ctx, #X); \ |