Browse Source

Fix documentation for onAdd event .from

Fix #170
pull/191/head
Dan Dascalescu 10 years ago
parent
commit
91145e29d4
  1. 2
      README.md

2
README.md

@ -66,7 +66,7 @@ var sortable = new Sortable(el, {
// Element is dropped into the list from another list // Element is dropped into the list from another list
onAdd: function (/**Event*/evt) { onAdd: function (/**Event*/evt) {
var itemEl = evt.item; // dragged HTMLElement var itemEl = evt.item; // dragged HTMLElement
itemEl.from; // previous list evt.from; // previous list
// + indexes from onEnd // + indexes from onEnd
}, },

Loading…
Cancel
Save