Skip to content

Mapping doesn't work when properties listed in different order #203

@mcintyre321

Description

@mcintyre321

I have a demo where a mapping is repeatedly applied. If the properties of the data being mapped aren't listed in the same order as before, ko fails to bind correctly.

http://jsfiddle.net/mcintyre321/690rfud0/6/

To demo, hit the button in the fiddle. On the third click it should update to show the third data object, but it won't. Switching the 3rd data item for the commented version will make it start working.

I am trying to map different objects structures into the viewmodel, but alas, this is preventing me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions