From 4865886721f76373cf9902f5c3fe2f159a375ee6 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 28 Nov 2012 22:35:40 +0000 Subject: fix logic --- javascript/jsapi/window.bnd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/jsapi/window.bnd b/javascript/jsapi/window.bnd index 7ad54dbac..56b2ff090 100644 --- a/javascript/jsapi/window.bnd +++ b/javascript/jsapi/window.bnd @@ -246,7 +246,7 @@ operation dispatchEvent %{ JS_GetProperty(cx, JSAPI_THIS_OBJECT(cx, vp), "onload", &eventval); } - if (JSVAL_IS_VOID(eventval)) { + if (!JSVAL_IS_VOID(eventval)) { event_argv[0] = eventval; jsret = JS_CallFunctionValue(cx, NULL, eventval, 1, event_argv, &event_rval); } -- cgit v1.2.3