mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
List item dragging mainly working
This commit is contained in:
@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user