(parent, prop, index, node)
| 7502 | }; |
| 7503 | |
| 7504 | function replace(parent, prop, index, node) { |
| 7505 | if (parent) { |
| 7506 | if (index !== null) { |
| 7507 | parent[prop][index] = node; |
| 7508 | } else { |
| 7509 | parent[prop] = node; |
| 7510 | } |
| 7511 | } |
| 7512 | } |
| 7513 | |
| 7514 | function remove(parent, prop, index) { |
| 7515 | if (parent) { |