From 7e77434bad6493b54a435d4b1a369f3875660d5d Mon Sep 17 00:00:00 2001 From: RubaXa Date: Sun, 13 Jul 2014 12:57:13 +0400 Subject: [PATCH] * upd --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b1a2094..af46fde 100644 --- a/README.md +++ b/README.md @@ -19,13 +19,17 @@ ``` ```js -new Sortable(items); +var el = document.getElementById('items'); +new Sortable(el); ``` +--- + + ### Options ```js -new Sortable(elem, { +new Sortable(el, { group: "name", store: null, // @see Store handle: ".my-handle", // Restricts sort start click/touch to the specified element @@ -54,6 +58,8 @@ new Sortable(elem, { }); ``` +--- + ### Method @@ -114,6 +120,3 @@ new Sortable(el, { * closest(el`:HTMLElement`, selector`:String`[, ctx`:HTMLElement`])`:HTMLElement|Null` — for each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree * toggleClass(el`:HTMLElement`, name`:String`, state`:Boolean`) — add or remove one classes from each element - -[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/RubaXa/sortable/trend.png)](https://bitdeli.com/free "Bitdeli Badge") -