Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.8] x-repeat objectizes arrays of strings #1411

Closed
mbleigh opened this issue Apr 14, 2015 · 3 comments
Closed

[0.8] x-repeat objectizes arrays of strings #1411

mbleigh opened this issue Apr 14, 2015 · 3 comments

Comments

@mbleigh
Copy link

mbleigh commented Apr 14, 2015

<template is="x-repeat" items="[[package.tags]]">
  <span name$="[[item]]">[[item]]</span>
</template>
<script>
  var package = {
    tags: ['first', 'second']
  }
</script>

This will cause the name attribute to appear as name=""first"" and typeof $0.name would be object because it's a String object.

@Nevraeka
Copy link

👍

@lucasfanning
Copy link

@kevinpschaaf
Copy link
Member

This is fixed on master; primitives are no longer upgraded to their object counterparts in place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants