* make new sub-container as needed. * returns false if there's no container and none is needed * because we're only deleting an attribute
(container, part, nextPart, toDelete)
| 222 | * because we're only deleting an attribute |
| 223 | */ |
| 224 | function checkNewContainer(container, part, nextPart, toDelete) { |
| 225 | if(container[part] === undefined) { |
| 226 | if(toDelete) return false; |
| 227 | |
| 228 | if(typeof nextPart === 'number') container[part] = []; |
| 229 | else container[part] = {}; |
| 230 | } |
| 231 | return true; |
| 232 | } |
| 233 | |
| 234 | function badContainer(container, propStr, propParts) { |
| 235 | return { |
no outgoing calls
no test coverage detected
searching dependent graphs…