From 021b54fb7f32d5107b620df9a56d7e99766b1647 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Tue, 4 Aug 2015 09:44:26 +0100 Subject: Fix window.window binding --- javascript/duktape/Window.bnd | 10 ++++++---- 1 file 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); \ -- cgit v1.2.3