Browse Source

Merge branch 'dev' of github.com:RubaXa/Sortable into dev

drop-text
RubaXa 10 years ago
parent
commit
fb3abe8224
  1. 6
      Sortable.js

6
Sortable.js

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

Loading…
Cancel
Save