From 404cc74e8146884d15703e793a8a897dff16eaef Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Thu, 20 Mar 2014 14:56:45 -0500 Subject: [PATCH] fix list item delete test --- js/ext/angular/test/list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ext/angular/test/list.html b/js/ext/angular/test/list.html index b5479c3449..2eabd731b3 100644 --- a/js/ext/angular/test/list.html +++ b/js/ext/angular/test/list.html @@ -232,7 +232,7 @@ }; $scope.deleteListItem = function(item, index) { console.log('onDelete from the "list" on-delete attribute', item, index); - $scope.items.splice($scope.items.indexOf(item), 1); + $scope.items.splice(index, 1); }; $scope.onReorder = function(el, start, end) { console.log('On reorder', el, start, end);