Browse Source

* fixed 'empty list'

pull/10/head
RubaXa 11 years ago
parent
commit
cc46a45f63
  1. 4
      Sortable.js
  2. 2
      Sortable.min.js

4
Sortable.js

@ -267,11 +267,11 @@
, target = _closest(evt.target, this.options.draggable, el)
;
if( target && target[expando] === void 0 ){
if( !target || target[expando] === void 0 ){
if( el.children.length === 0 ){
el.appendChild(dragEl);
}
else if( target !== dragEl ){
else if( target && target !== dragEl ){
if( lastEl !== target ){
lastEl = target;
lastCSS = _css(target)

2
Sortable.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save