MCPcopy
hub / github.com/1j01/jspaint / parse_object_params

Function parse_object_params

src/help.js:191–198  ·  view source on GitHub ↗
($object)

Source from the content-addressed store, hash-verified

189 });
190
191 const parse_object_params = ($object) => {
192 // parse an $(<object>) to a plain object of key value pairs
193 const object = {};
194 for (const param of $object.children("param").get()) {
195 object[param.name] = param.value;
196 }
197 return object;
198 };
199
200 let $last_expanded;
201

Callers 1

renderItemFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected