Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
Stuk opened this Issue · 4 comments

3 participants

@Stuk
Owner

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.

@aadsm
Owner

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

@Stuk
Owner

Changing objects to content doesn't work

@aadsm
Owner

Fixed in 0ba2c58

@Stuk Stuk was assigned
@mczepiel
Collaborator

Is this still an open issue?

@Stuk Stuk closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.