I'm having a strange issue with Ember and I really need a way around it
I have the following:
{{#unbound each items}}
<span>{{unbound myValue}}</span>
{{unbound view App.MyView content=this.subItems}}
{{/unbound}}
which should output the following:
<div>
<span>First item</span>
<div>
...first other view...
</div>
<div>
...nth other view...
</div>
</div>
...
<div>
<span>nth item</span>
<div>
...first other view...
</div>
<div>
...nth other view...
</div>
</div>
There are two things to notice there:
I'm not using the collection handler...it adds an extra div in for the view it creates and I cannot use that with the plugin I am using...I -have- to retain the DOM structure required above
There should be no metamorph tags...Nothing inside of this structure needs to be bound and the metamorph tags mess with my plugin's ability to function
Now, here's the issue: I used the '#unbound each' helper above, which should in theory have outputted the DOM structure above. Instead I still get metamorph tags from the each block:
<script id="metamorph-0-start"></script>
<script id="metamorph-1-start"></script>
<div>
<span>First item</span>
<div>
...first other view...
</div>
<div>
...nth other view...
</div>
</div>
<script id="metamorph-1-end"></script>
<script id="metamorph-0-end"></script>
...
<script id="metamorph-n0-start"></script>
<script id="metamorph-n1-start"></script>
<div>
<span>nth item</span>
<div>
...first other view...
</div>
<div>
...nth other view...
</div>
</div>
<script id="metamorph-n1-end"></script>
<script id="metamorph-n0-end"></script>
What am I doing wrong here?
This is a live JS Fiddle demonstrating the issue: http://jsfiddle.net/NQKvy/942/