Browse Source

Fix incorrect example code

pull/880/head
古谷向日葵 9 years ago committed by GitHub
parent
commit
cabde8c65a
  1. 4
      README.md

4
README.md

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

Loading…
Cancel
Save