summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2015-08-04 08:44:26 (GMT)
committer Daniel Silverstone <dsilvers@digital-scurf.org>2015-08-04 08:44:26 (GMT)
commit021b54fb7f32d5107b620df9a56d7e99766b1647 (patch)
treebe226abe0cbb3fb94293acc6e337c894cf6ed934
parent9cf8d1ffac7f8a3330d30472aff79a112ea2f0ce (diff)
downloadnetsurf-dsilvers/bindducky.tar.gz
netsurf-dsilvers/bindducky.tar.bz2
Fix window.window bindingdsilvers/bindducky
-rw-r--r--javascript/duktape/Window.bnd10
1 files changed, 6 insertions, 4 deletions
diff --git a/javascript/duktape/Window.bnd b/javascript/duktape/Window.bnd
index 2835f4b..b2b821c 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); \