Skip to content

Elements not cleared when rebinded with new data #153

Description

@ibiza240

Hi and thanks for this lightweight library, I tried it and liked it!

However I found a bug, here is my scenario. I have a button to make an AJAX call and bind the JSON data from the server to HTML elements with Transparency.

First time, let's say element1 and element2 are populated correctly with the following json:
{ element1: 'abc', element2: 'def' }

If I do a second AJAX call that returns something null in element2, the value 'def' will still be seen on the webpage, along with the new value for element1.

This pretty much breaks it for me...is this a known bug?

Thanks!
Bruno

Activity

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

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