foxnewsnetwork / ember-component-helpers

component keyword related helpers for Ember
MIT License
4 stars 2 forks source link

Properly bind all passed in attributes in component-wrap #1

Open foxnewsnetwork opened 8 years ago

foxnewsnetwork commented 8 years ago

Consider the usage example

{{#component "component-wrap" "a" href=href class=listItemClass}}
  Something
{{/component}}

I would expect the generated element to look like:

<a href="..." class="...">
  Something
</a>

Instead only the class elements are bound, but the href isn't. You need to fix this so that everything passed in the hash binds as attributes to the element.