Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Commit

Permalink
fix(macModal): Fixed not able to close modal when clicking on overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianlee44 committed Mar 14, 2014
1 parent 170bb0f commit f281a28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/modal.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit f281a28

Please sign in to comment.