diff --git a/src/services/modal.coffee b/src/services/modal.coffee index 01c1bde..78a0d85 100644 --- a/src/services/modal.coffee +++ b/src/services/modal.coffee @@ -122,7 +122,7 @@ angular.module("Mac").service("modal", [ wrapper.html template if options.overlayClose - element.bind "click", ($event) -> + element.bind "click", ($event) => if angular.element($event.target).hasClass("modal-overlay") viewScope.$apply => @hide()