core-client/js/components/alert.js
/**
   * Close an alert
   *
   * @param      {Integer}  uid     The unique ID of the alert
   */
Close an alert
@param      {Integer}  uid     The unique ID of the alert
Close an alert @param { Integer } uid The unique ID of the alert
close (uid) {
    let self = this
    let nAlertIdx = _.findIndex(self.mdl.children, ['_uid', uid])
    let nAlert = _.nth(self.mdl.children, nAlertIdx)
    if (nAlertIdx >= 0 && nAlert) {
      nAlert.class += ' exit'
      self.mdl.children.$set(nAlertIdx, nAlert)
      _.delay(() => {
        self.mdl.children.$remove(nAlert)
      }, 500)
    }
  }
close ( uid ) { let self = this let nAlertIdx = _ . findIndex ( self . mdl . children , [ '_uid' , uid ] ) let nAlert = _ . nth ( self . mdl . children , nAlertIdx ) if ( nAlertIdx >= 0 && nAlert ) { nAlert . class += ' exit' self . mdl . children . $set ( nAlertIdx , nAlert ) _ . delay ( ( ) => { self . mdl . children . $remove ( nAlert ) } , 500 ) } }
Close an alert
 @param      {Integer}  uid     The unique ID of the alert
Close an alert @param { Integer } uid The unique ID of the alert