Open phillipskevin opened 6 years ago
I'm not positive this issue is caused by can-reflect, but canReflect.getKeyDependencies is the lowest level place I've narrowed it down to.
can-reflect
canReflect.getKeyDependencies
When a property depends on the length of another property it is displayed strangely. This code:
length
ViewModel: { numbers: { default() { return [1, 2, 3, 4, 5, 6]; } }, get oddNumbers() { return this.numbers.reduce((odds, num) => { if (num % 2 === 1) { odds.push(num); } return odds; }, []); } }
...returns this graph:
This should somehow be tied to numbers.length.
numbers.length
I'm not positive this issue is caused by
can-reflect
, butcanReflect.getKeyDependencies
is the lowest level place I've narrowed it down to.When a property depends on the
length
of another property it is displayed strangely. This code:...returns this graph:
This should somehow be tied to
numbers.length
.