fix logic

This commit is contained in:
Vincent Sanders 2012-11-28 22:35:40 +00:00
parent 71577f214d
commit 4865886721

View File

@ -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);
}