diff options
Diffstat (limited to 'javascript/duktape/Window.bnd')
-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); \ |