<script type='text/stache' can-autorender id='demo-html'>
{{#each(items, item=value num=index)}}
	<li on:click='../items.splice(num,1)'>{{item.name}}</li>
{{/each}}
</script>

<script src="../../node_modules/steal/steal.js" main="@empty" id='demo-source'>
import "can-view-autorender";
import "can-stache-bindings";
import "can-stache";
import viewModel from "can-view-model";
import DefineList from "can-define/list/list";

var el = document.getElementById("demo-html");
viewModel(el, {
	items: new DefineList([{name: "first"}, {name: "second"}])
});
</script>

<script type='text/stache' can-autorender id='demo-html'>
{{#each(items)}}
	<li on:click='../items.splice(scope.index,1)'>{{name}}</li>
{{/each}}
</script>

<script src="../../node_modules/steal/steal.js" main="@empty" id='demo-source'>
import "can-view-autorender";
import "can-stache-bindings";
import "can-stache";
import viewModel from "can-view-model";
import DefineList from "can-define/list/list";

var el = document.getElementById("demo-html");
viewModel(el, {
	items: new DefineList([{name: "first"}, {name: "second"}])
});
</script>

Switch the can-stache-bindings event demo back to using scope.index
Switch the can-stache-bindings event demo back to using scope.index
