jQuery UI Widgets Forums Layouts Kanban Another kanban problem

This topic contains 1 reply, has 1 voice, and was last updated by  ldubois 6 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Another kanban problem #89237

    ldubois
    Participant

    Hi.

    I have another Kanban problem when repopulating with a filtered version of data.
    _populateKanban is called, storing the actual length of source, then define a function to apply to all source items (using closure for the variable storing the length of source) then _populateKanban is called again (from _serializeSource) with less items, calling again h.resources.bindBindingUpdate that calls the function declared in _populateKanban, but the closure still have the length of the previous source, not the actual source => index out of range exception when setting kanban-item-id.

    Not so simple to explain with the mignified version.

    Just try to repopulate with the same items minus the first one for example.

    Thanks.

    Ludovic.

    • This topic was modified 6 years, 8 months ago by  admin.
    Another kanban problem #89239

    ldubois
    Participant

    I just removed resources initialization (keeping setting source only) and it works…

    Ludovic.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.