Commit dde3d773 authored by Randall Leeds's avatar Randall Leeds

Don't use `confirm` in a digest cycle

Close #2097
parent f96a7996
......@@ -103,8 +103,11 @@ AnnotationController = [
# @description Deletes the annotation.
###
this.delete = ->
$timeout -> # Don't use confirm inside the digest cycle
if confirm "Are you sure you want to delete this annotation?"
$scope.$apply ->
annotationMapper.deleteAnnotation model
, true
###*
# @ngdoc method
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment