fix(graphite editor): fixed moving functions right and left, broken recently, fixes #3246

This commit is contained in:
Torkel Ödegaard 2016-03-04 09:42:21 +01:00
parent a6623357ad
commit 31c317f5f7

View File

@ -208,7 +208,7 @@ function (angular, _, $) {
if ($target.hasClass('fa-arrow-left')) {
$scope.$apply(function() {
_.move($scope.functions, $scope.$index, $scope.$index - 1);
_.move(ctrl.functions, $scope.$index, $scope.$index - 1);
ctrl.targetChanged();
});
return;
@ -216,7 +216,7 @@ function (angular, _, $) {
if ($target.hasClass('fa-arrow-right')) {
$scope.$apply(function() {
_.move($scope.functions, $scope.$index, $scope.$index + 1);
_.move(ctrl.functions, $scope.$index, $scope.$index + 1);
ctrl.targetChanged();
});
return;