MCPcopy
hub / github.com/cilame/v_jstools / inspect_arguments

Function inspect_arguments

tools/common/dyn_script_v3_dark.js:175–184  ·  view source on GitHub ↗
(_this, arg, estr, ret, clazz, name, type)

Source from the content-addressed store, hash-verified

173 v_geteles: {},
174}
175function inspect_arguments(_this, arg, estr, ret, clazz, name, type){
176 v_cache_node(estr, ret, clazz, name, type)
177 if (typeof arg[0] != 'string'){ return }
178 if (name == 'getElementById' || name == 'querySelector'){
179 if (ret){ v_getelement_all.v_getele[arg[0]] = [name, ret] }
180 }
181 if (name == 'getElementsByClassName' || name == 'getElementsByName' || name == 'getElementsByTagName' || name == 'getElementsByTagNameNS' || name == 'querySelectorAll'){
182 if (ret.length){ v_getelement_all.v_geteles[arg[0]] = [name, ret] }
183 }
184}
185
186
187

Callers 15

_new_cookie_getFunction · 0.70
_new_cookie_setFunction · 0.70
_new_disabled_getFunction · 0.70
_new_disabled_setFunction · 0.70
_new_form_getFunction · 0.70
_new_form_setFunction · 0.70
_new_label_getFunction · 0.70
_new_label_setFunction · 0.70
_new_defaultSelected_getFunction · 0.70
_new_defaultSelected_setFunction · 0.70
_new_selected_getFunction · 0.70
_new_selected_setFunction · 0.70

Calls 1

v_cache_nodeFunction · 0.70

Tested by

no test coverage detected