Hey guys, I could use some help.
the error
Uncaught TypeError: Cannot read property 'child' of undefined
the code
+famousContext id="mainCtx"
+Scrollview
+famousEach groupedEvents
+Surface size='[undefined,25]' class="track"
+famousEach occurences
+Surface size='[50,25]'
.occurence($dyn=occurrenceAttributes)
a(href="/instance/#{_id}")= instanceDisplayName
I'm trying to bind each groupedEvent
to a surface and each occurrence
within that groupedEvent
to it's own, surface-within-a-surface. So I suppose, I'm trying to achieve nested surfaces?
The groupEvents
is an array of hashes, each with it's own array of hashes and it looks something like...
[
{
id: 'abc123',
displayName: 'foo',
occurrences: [
{
instanceDisplayName: 'bar',
},
...
]
},
...
]
]
which is NOT a cursor but a object literal, processed from documents from multiple collections. I'm not sure if that makes a difference.