Skip to content

Commit fd0659c

Browse files
committed
Fixed a bug where it was not possible to remove children
1 parent 271dcfa commit fd0659c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/src/ng-annotate.coffee

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ ngAnnotate.directive "ngAnnotate", ($rootScope, $compile, $http, $q, NGAnnotatio
206206

207207
removeAnnotation = (id, annotations)->
208208
for a, i in annotations
209+
removeAnnotation id, a.children
210+
209211
if a.id is id
210212
removeChildren a
211213
annotations.splice i, 1
@@ -262,7 +264,7 @@ ngAnnotate.directive "ngAnnotate", ($rootScope, $compile, $http, $q, NGAnnotatio
262264
catch ex
263265
if $scope.onAnnotateError?
264266
$scope.onAnnotateError ex
265-
267+
266268
return
267269

268270
clearPopups()

0 commit comments

Comments
 (0)