list.reel doesn't initialize repetition soon enough #1119

Closed
Stuk opened this Issue Feb 12, 2013 · 4 comments

Comments

Projects
None yet
3 participants
Contributor

Stuk commented Feb 12, 2013

When using the list like this:

            "list": {
                "prototype": "montage/ui/list.reel",
                "properties": {
                    "element": {"#": "list"}
                },
                "bindings": {
                    "objects": {"<-": "@owner.things"}
                }
            },

I get the following error:

Error in http://localhost/thing/ui/package-explorer.reel/: TypeError: Cannot read property 'objectAtCurrentIteration' of null
    at _observeProperty (http://client/node_modules/montage/node_modules/frb/observers.js:84:26)
    at Object.exports.List.Montage.create.observeProperty.value (http://client/node_modules/montage/ui/list.reel/list.js:109:24)
...

null in this case is this._repetition in the list.

Collaborator

aadsm commented Feb 12, 2013

Looks like a bug in the List but beware that the API changed from "objects" to "content"

Contributor

Stuk commented Feb 12, 2013

Changing objects to content doesn't work

Collaborator

aadsm commented Feb 12, 2013

Fixed in 0ba2c58

@ghost ghost assigned Stuk Mar 4, 2013

Contributor

mczepiel commented Mar 4, 2013

Is this still an open issue?

@Stuk Stuk closed this Apr 26, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment