mjsarfatti/nestedSortable — Issue #11: toArray: Wrong left and right values due to root node
Author: Martin-P
Created: 2012-01-07 19:40:49+00:00
State: open

First of all, I really like this plugin! Great work.

There is a bug in the toArray method wich makes left and right values go wrong. This happens because the root node is counted twice in the current situation. The fix is to skip the root node and start counting with the children of the first list item.

__Current situation line 289:__
```$(this.element).children(o.items).each(function () {```

__New situation line 289:__
```$( this.element ).first( 'li' ).children('li').each(function () {```