summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/Document.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/javascript/Document.cpp')
-rw-r--r--fpdfsdk/javascript/Document.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/fpdfsdk/javascript/Document.cpp b/fpdfsdk/javascript/Document.cpp
index 02cf82b9b1..d556872477 100644
--- a/fpdfsdk/javascript/Document.cpp
+++ b/fpdfsdk/javascript/Document.cpp
@@ -46,10 +46,9 @@ int CJS_PrintParamsObj::GetObjDefnID() {
}
// static
-void CJS_PrintParamsObj::DefineJSObjects(CFXJS_Engine* pEngine,
- FXJSOBJTYPE eObjType) {
+void CJS_PrintParamsObj::DefineJSObjects(CFXJS_Engine* pEngine) {
ObjDefnID =
- pEngine->DefineObj("PrintParamsObj", eObjType,
+ pEngine->DefineObj("PrintParamsObj", FXJSOBJTYPE_DYNAMIC,
JSConstructor<CJS_PrintParamsObj, PrintParamsObj>,
JSDestructor<CJS_PrintParamsObj>);
}
@@ -159,9 +158,8 @@ int CJS_Document::GetObjDefnID() {
}
// static
-void CJS_Document::DefineJSObjects(CFXJS_Engine* pEngine,
- FXJSOBJTYPE eObjType) {
- ObjDefnID = pEngine->DefineObj("Document", eObjType,
+void CJS_Document::DefineJSObjects(CFXJS_Engine* pEngine) {
+ ObjDefnID = pEngine->DefineObj("Document", FXJSOBJTYPE_GLOBAL,
JSConstructor<CJS_Document, Document>,
JSDestructor<CJS_Document>);
DefineProps(pEngine, ObjDefnID, PropertySpecs);