List item dragging mainly working

This commit is contained in:
Max Lynch
2013-10-14 11:59:44 -05:00
parent cfd8cd3ba5
commit c6d33bfb72
7 changed files with 309 additions and 16 deletions

View File

@ -1,5 +1,11 @@
(function(ionic) {
ionic.DomUtil = {
getChildIndex: function(element) {
return Array.prototype.slice.call(element.parentNode.children).indexOf(element);
},
swapNodes: function(src, dest) {
dest.parentNode.insertBefore(src, dest);
},
/**
* {returns} the closest parent matching the className
*/