mjsarfatti/nestedSortable — Issue #5: Detect the listType from element, avoid browser freeze
Author: Ciantic
Created: 2011-12-17 19:40:36+00:00
State: open

Hi!

I spent last hour wondering why the hell it doesn't work, my browser (Chrome beta) freezed literally. And the reason? Default list type is `ol` not `ul`. If I try to use `$("ul.sortable").nestedSortable` it just freezed.

Ways to fix this:
1. *Detect* the listType from the parent element using nodeName, e.g. `jQuery("

").get(0).nodeName`...
2. Throw error and don't freeze the browser.