I created a demo to test the Ractive decorator: "ractive-decorators-sortable.js" and what I tought would be a simple test does not look like it will ever sort anything. It also give me the following error: "Uncaught TypeError: sourceKeypath.lastIndexOf is not a function". Here is my code:
<body>
<h1>Ractive sort</h1>
<div id='container'></div>
<script id='template' type='text/ractive'>
<ul class="reorderable browsers">
{{#list}}
<li decorator='sortable'>{{.}}</li>
{{/list}}
</ul>
</script>
<script>
var ractive = new Ractive({
el: '#container',
template: '#template',
data: { list: [ 'Firefox', 'Chrome', 'Internet Explorer', 'Opera', 'Safari', 'Maxthon' ] }
});
</script>
</body>
thanks for any help.
This should be fixed in the newest version of the plugin.