(root, property, getter)
| 414 | } |
| 415 | |
| 416 | #flatGet(root, property, getter) { |
| 417 | if (root != null) { |
| 418 | var val = getter(root, property); |
| 419 | if (typeof val !== "undefined") { |
| 420 | return val; |
| 421 | } |
| 422 | if (this.shouldAutoIterate(root)) { |
| 423 | var result = []; |
| 424 | for (var component of root) { |
| 425 | var componentValue = getter(component, property); |
| 426 | result.push(componentValue); |
| 427 | } |
| 428 | return result; |
| 429 | } |
| 430 | } |
| 431 | } |
| 432 | |
| 433 | resolveProperty(root, property) { |
| 434 | if (this.reactivity.isTracking) this.reactivity.trackProperty(root, property); |
no test coverage detected