Beispiel #1
0
IJS_Runtime* CPDFDoc_Environment::GetJSRuntime() {
  if (!IsJSInitiated())
    return NULL;
  if (!m_pJSRuntime)
    m_pJSRuntime.reset(IJS_Runtime::Create(this));
  return m_pJSRuntime.get();
}
Beispiel #2
0
IFXJS_Runtime* CPDFDoc_Environment::GetJSRuntime()
{
    if (!IsJSInitiated())
        return NULL;
    if (!m_pJSRuntime)
        m_pJSRuntime = m_pJSRuntimeFactory->NewJSRuntime(this);
    return m_pJSRuntime;
}