Browse Source

Ignore <template> when setting index

pull/168/head
Greg Hoyl 10 years ago
parent
commit
df59738bb4
  1. 2
      Sortable.js

2
Sortable.js

@ -900,7 +900,7 @@
*/
function _index(/**HTMLElement*/el) {
var index = 0;
while (el && (el = el.previousElementSibling)) {
while (el && (el = el.previousElementSibling) && (el.nodeName !== 'TEMPLATE')) {
index++;
}
return index;

Loading…
Cancel
Save