From d7bb0713b0b06fcc98c2631812d74a976e3bc8b6 Mon Sep 17 00:00:00 2001 From: Dmitry Minkovsky Date: Mon, 28 Jul 2014 01:03:33 -0400 Subject: [PATCH] Fixed typo --- Sortable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sortable.js b/Sortable.js index cee6745..df2f5b4 100644 --- a/Sortable.js +++ b/Sortable.js @@ -345,7 +345,7 @@ , skew = (floating ? (evt.clientX - rect.left)/width : (evt.clientY - rect.top)/height) > .5 , isWide = (target.offsetWidth > dragEl.offsetWidth) , isLong = (target.offsetHeight > dragEl.offsetHeight) - , nextSibling = target.nextSibling + , nextSibling = target.nextElementSibling , after ; @@ -355,7 +355,7 @@ if( floating ){ after = (target.previousElementSibling === dragEl) && !isWide || (skew > .5) && isWide } else { - after = (target.nextElementSibling !== dragEl) && !isLong || (skew > .5) && isLong; + after = (nextSibling !== dragEl) && !isLong || (skew > .5) && isLong; } if( after && !nextSibling ){