[ALOY-409] Collection binding giving error on inline rows in TableView
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2012-11-30T22:39:48.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Alloy 0.3.3, 2012 Sprint 24 |
Components | n/a |
Labels | n/a |
Reporter | Tony Lukasavage |
Assignee | Unknown |
Created | 2012-11-30T21:54:21.000+0000 |
Updated | 2018-03-07T22:26:01.000+0000 |
Description
from Benjamin Hatfield:
So, I was experimenting with the binding branch last week with the following code:
<Alloy>
<Collection src="book" />
<Window class="container">
<TableView dataCollection="book" >
<TableViewRow title="{title}" />
</TableView>
</Window>
</Alloy>
And it threw this error:
[ERROR] Script Error = 'null' is not an object (evaluating '$model.__transform') at index.js (line 27).
I defined a transform function, but I got the same results. I just figured you were still working on it. However, today, I noticed you had a test application for binding and noticed that you use Require. So, I placed my TableViewRow into its own view and required it, and voila, it worked.
Uses appropriate runtime variable name depending on whether the item to be rendered is inline or in a