diff options
Diffstat (limited to 'fpdfsdk/javascript/event.cpp')
-rw-r--r-- | fpdfsdk/javascript/event.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fpdfsdk/javascript/event.cpp b/fpdfsdk/javascript/event.cpp index 07e439be47..fcb5b046b1 100644 --- a/fpdfsdk/javascript/event.cpp +++ b/fpdfsdk/javascript/event.cpp @@ -39,10 +39,10 @@ const JSPropertySpec CJS_Event::PropertySpecs[] = { int CJS_Event::ObjDefnID = -1; // static -void CJS_Event::DefineJSObjects(CFXJS_Engine* pEngine, FXJSOBJTYPE eObjType) { - ObjDefnID = - pEngine->DefineObj("event", eObjType, JSConstructor<CJS_Event, event>, - JSDestructor<CJS_Event>); +void CJS_Event::DefineJSObjects(CFXJS_Engine* pEngine) { + ObjDefnID = pEngine->DefineObj("event", FXJSOBJTYPE_STATIC, + JSConstructor<CJS_Event, event>, + JSDestructor<CJS_Event>); DefineProps(pEngine, ObjDefnID, PropertySpecs); } |