Browse Source

Small change to update the data instead of the polymer collection.

pull/881/head
Daniel Persson 9 years ago
parent
commit
4d65727212
  1. 3
      Sortable.html

3
Sortable.html

@ -78,7 +78,8 @@
this.sortable = Sortable.create(this, Object.assign(options, { this.sortable = Sortable.create(this, Object.assign(options, {
onUpdate: e => { onUpdate: e => {
if (template) { if (template) {
template.splice("items", e.newIndex, 0, template.splice("items", e.oldIndex, 1)[0]) template.items.splice(e.newIndex, 0, template.items.splice(e.oldIndex, 1)[0]);
//template.splice("items", e.newIndex, 0, template.splice("items", e.oldIndex, 1)[0])
} }
this.fire("update", e) this.fire("update", e)
}, },

Loading…
Cancel
Save