Merge branch 'master' of git://git.netsurf-browser.org/netsurf

This commit is contained in:
Chris Young 2012-11-28 22:42:45 +00:00
commit ec79063155
2 changed files with 2 additions and 1 deletions

View File

@ -246,7 +246,7 @@ operation dispatchEvent %{
JS_GetProperty(cx, JSAPI_THIS_OBJECT(cx, vp), "onload", &eventval); JS_GetProperty(cx, JSAPI_THIS_OBJECT(cx, vp), "onload", &eventval);
} }
if (JSVAL_IS_VOID(eventval)) { if (!JSVAL_IS_VOID(eventval)) {
event_argv[0] = eventval; event_argv[0] = eventval;
jsret = JS_CallFunctionValue(cx, NULL, eventval, 1, event_argv, &event_rval); jsret = JS_CallFunctionValue(cx, NULL, eventval, 1, event_argv, &event_rval);
} }

View File

@ -43,6 +43,7 @@
#include "render/imagemap.h" #include "render/imagemap.h"
#include "render/layout.h" #include "render/layout.h"
#include "render/search.h" #include "render/search.h"
#include "javascript/js.h"
#include "utils/corestrings.h" #include "utils/corestrings.h"
#include "utils/http.h" #include "utils/http.h"
#include "utils/libdom.h" #include "utils/libdom.h"