Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Multiple list binding problem #52

Closed
brenden opened this Issue Mar 30, 2012 · 2 comments

Comments

Projects
None yet
2 participants

brenden commented Mar 30, 2012

I am trying to bind an array of names to the entries in list A, but not to list B.

<div>
  <ul id="A">
    <li data-bind="names"></li>
  </ul>
  <ul id="B">
    <li></li>
  </ul>
</div>
var data = {names: ['woody allen', 'wu tang clan']};
map.where('data-bind').is('names').to('names');
plates.bind(html, data, map);

Expected output:

<div>
  <ul id="A">
    <li data-bind="names">woody allen</li>
    <li data-bind="names">wu tang clan</li>
  </ul>
  <ul id="B">
    <li></li>
  </ul>
</div>

Actual output:

<div>
  <ul id="A">
    <li data-bind="names">woody allen</li>
  </ul> 
  <ul id="B">
    <li></li>
    <li data-bind="names">wu tang clan</li>
  </ul> 
  <ul id="B">
    <li></li>
  </ul>
  <ul id="B">
    <li></li>
  </ul>
</div>

If I remove list B, the data gets bound to list A properly. Any thoughts on what is happening?

Thanks

Contributor

pksunkara commented Mar 30, 2012

Yes, this is similiar to #47. We are working on it.

Contributor

pksunkara commented Mar 30, 2012

Closed due to issue being duplicate

@pksunkara pksunkara closed this Mar 30, 2012

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