         closeButton.style.display = 'none'
   )
 
+  # configure the onContainerCreate event handler
   notific8(
     'configure'
     onContainerCreate: (container, options) ->

    { namespace } = data.settings
    container.querySelector(".#{namespace}-closeall-button")

  notific8(
    'registerModule'
    'closeall'
    'insideContainer'
    {
      closeAll: false
      closeAllText: 'Close All'
      closeAllTheme: 'legacy'
      closeAllColor: 'teal'
    }
    closeAllCallback
  )

  notific8(
    'configure'
    onCreate: (notification, data) ->


        notificationClass = ".#{namespace}-notification.open"
        notifications = container.querySelectorAll(notificationClass)

        for notification in notifications
          ((n, namespace) ->
            n.querySelector(".#{namespace}-close").click()
          )(notification, namespace)
        return
  )

  # register the closeAll module
  notific8(
    'registerModule'
    'closeall'
    'insideContainer'
    {
      closeAll: false
      closeAllText: 'Close All'
      closeAllTheme: 'legacy'
      closeAllColor: 'teal'
    }
    closeAllCallback
  )
