Skip to content
This repository was archived by the owner on Dec 19, 2017. It is now read-only.
This repository was archived by the owner on Dec 19, 2017. It is now read-only.

core-list-dart polyfill -- itemData is undefined #190

@jakemac53

Description

@jakemac53

Original report https://code.google.com/p/dart/issues/detail?id=22235, copied below:

Reported by robbishop65, Feb 2
I have some code with a core-list-dart being added at runtime as the result of a user action and then populated with items. In Dartium and in Chrome this works fine. However in FireFox and Internet Explorer I get an error and the list fails to populate properly.

In the Firefox console the error is reported as 'TypeError: itemData is undefined.' In the IE11 console I see 'SCRIPT5007: Unable to get property 'toString' of undefined or null reference.'

The DOM is fairly complicated, with the dynamically added core list being part of a custom element which is a child of a Section of nested core animation pages.

core-lists that are statically defined in custom element HTML do not seem to suffer the same problem.

I tried various combinations of CoreList.refresh, .updateMetrics .updateSize and
to work around the problem to no avail.

If there is only one item in the list it populates ok and the itemData error does not appear. If there is more than one item in the list then the first item is displayed but is malformed (bad data values).

What version of the product are you using?
Dart SDK 1.8.5, polymer 0.15.5, core_element 0.6.0+4

On what operating system?
Win 7 x64

What browser (if applicable)?
FireFox 35.0.1, IE11 (Dartium and Chrome work as expected)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions