Browse Source

Merge pull request #168 from ghjunior/index-ignore-template

Ignore <template> when setting index
pull/177/head
Lebedev Konstantin 10 years ago
parent
commit
a71c6a0f40
  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