|
|
@ -31,8 +31,6 @@ |
|
|
|
var removed, |
|
|
|
var removed, |
|
|
|
nextSibling; |
|
|
|
nextSibling; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Export
|
|
|
|
// Export
|
|
|
|
return { |
|
|
|
return { |
|
|
|
restrict: 'AC', |
|
|
|
restrict: 'AC', |
|
|
@ -59,9 +57,6 @@ |
|
|
|
var itemsExpr = $parse(ngRepeat[2]); |
|
|
|
var itemsExpr = $parse(ngRepeat[2]); |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
item: function (el) { |
|
|
|
|
|
|
|
return itemExpr(angular.element(el).scope()); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
items: function () { |
|
|
|
items: function () { |
|
|
|
return itemsExpr(scope); |
|
|
|
return itemsExpr(scope); |
|
|
|
} |
|
|
|
} |
|
|
@ -81,7 +76,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
/* jshint expr:true */ |
|
|
|
/* jshint expr:true */ |
|
|
|
options[name] && options[name]({ |
|
|
|
options[name] && options[name]({ |
|
|
|
model: item || source && source.item(evt.item), |
|
|
|
model: item || source && source.items()[evt.newIndex], |
|
|
|
models: source && source.items(), |
|
|
|
models: source && source.items(), |
|
|
|
oldIndex: evt.oldIndex, |
|
|
|
oldIndex: evt.oldIndex, |
|
|
|
newIndex: evt.newIndex |
|
|
|
newIndex: evt.newIndex |
|
|
|