diff options
Diffstat (limited to 'fxjs/cjx_nodelist.cpp')
-rw-r--r-- | fxjs/cjx_nodelist.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fxjs/cjx_nodelist.cpp b/fxjs/cjx_nodelist.cpp index 8200e2ef08..9a0c4a27e4 100644 --- a/fxjs/cjx_nodelist.cpp +++ b/fxjs/cjx_nodelist.cpp @@ -80,7 +80,7 @@ void CJX_NodeList::Script_ListClass_Item(CFXJSE_Arguments* pArguments) { return; } pArguments->GetReturnValue()->Assign( - GetXFANodeList()->GetDocument()->GetScriptContext()->GetJSValueFromMap( + GetDocument()->GetScriptContext()->GetJSValueFromMap( GetXFANodeList()->Item(iIndex))); } @@ -99,8 +99,7 @@ void CJX_NodeList::Script_TreelistClass_NamedItem( return; pArguments->GetReturnValue()->Assign( - GetXFANodeList()->GetDocument()->GetScriptContext()->GetJSValueFromMap( - pNode)); + GetDocument()->GetScriptContext()->GetJSValueFromMap(pNode)); } void CJX_NodeList::Script_ListClass_Length(CFXJSE_Value* pValue, |