       @clearWaiting id
       delete @registered[id]
 
+    #
+    # @name clearWaiting
+    # @description
+    # Remove certain modal id from waiting list
+    # @param {String} id ID of the modal
+    #
     clearWaiting: (id) ->
       # clear modal with the same id if id is provided
       return if id? and @waiting.id isnt id

        attrs.$observe "macModal", (id) -> registerModal id
]).

# mac-modal:         Modal ID to trigger
# mac-modal-content: Extra content/data to pass along
directive "macModal", [
  "$parse"
  "modal"


      modal.css css

    #
    # @name hide
    # @description
    # Hide currently opened modal
    # @param {Function} callback Callback after modal has been hidden
    #
    hide: (callback) ->
      return unless @opened?

