diff options
Diffstat (limited to 'fxjs/cjs_document.cpp')
-rw-r--r-- | fxjs/cjs_document.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fxjs/cjs_document.cpp b/fxjs/cjs_document.cpp index a259767560..791e9bdfd7 100644 --- a/fxjs/cjs_document.cpp +++ b/fxjs/cjs_document.cpp @@ -124,14 +124,12 @@ void CJS_Document::DefineJSObjects(CFXJS_Engine* pEngine) { } CJS_Document::CJS_Document(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime) - : CJS_Object(pObject, pRuntime) {} - -CJS_Document::~CJS_Document() = default; - -void CJS_Document::InitInstance() { + : CJS_Object(pObject, pRuntime) { SetFormFillEnv(GetRuntime()->GetFormFillEnv()); } +CJS_Document::~CJS_Document() = default; + // The total number of fields in document. CJS_Return CJS_Document::get_num_fields(CJS_Runtime* pRuntime) { if (!m_pFormFillEnv) |