Browse Source

Merge pull request #880 from syuilo/master

Fix incorrect example code
pull/866/merge
Lebedev Konstantin 9 years ago committed by GitHub
parent
commit
1923228c78
  1. 4
      README.md

4
README.md

@ -601,7 +601,7 @@ Sortable.create(el, {
* @returns {Array}
*/
get: function (sortable) {
var order = localStorage.getItem(sortable.options.group);
var order = localStorage.getItem(sortable.options.group.name);
return order ? order.split('|') : [];
},
@ -611,7 +611,7 @@ Sortable.create(el, {
*/
set: function (sortable) {
var order = sortable.toArray();
localStorage.setItem(sortable.options.group, order.join('|'));
localStorage.setItem(sortable.options.group.name, order.join('|'));
}
}
})

Loading…
Cancel
Save