From cabde8c65ab68e6d24e61de23c0dbf69ba0c43f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=A4=E8=B0=B7=E5=90=91=E6=97=A5=E8=91=B5?= Date: Sat, 18 Jun 2016 22:23:47 +0900 Subject: [PATCH] Fix incorrect example code --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4443936..141d2c9 100644 --- a/README.md +++ b/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('|')); } } })