Browse Source

Update ng-sortable.js

pull/487/head
André Góis 10 years ago
parent
commit
5b4737f628
  1. 15
      ng-sortable.js

15
ng-sortable.js

@ -31,8 +31,15 @@
var removed,
nextSibling;
// Export
return {
restrict: 'AC',
scope: { ngSortable: "=?" },
link: function (scope, $el, attrs) {
function getSource(el) {
var scope = angular.element(el).scope();
var ngRepeat = [].filter.call(el.childNodes, function (node) {
return (
(node.nodeType === 8) &&
@ -61,12 +68,6 @@
};
}
// Export
return {
restrict: 'AC',
scope: { ngSortable: "=?" },
link: function (scope, $el, attrs) {
var el = $el[0],
options = angular.extend(scope.ngSortable || {}, ngSortableConfig),
source = getSource(el),

Loading…
Cancel
Save