* Hide the given notification. * * @param {element} notification The notification html element.
(notification)
| 69 | * @param {element} notification The notification html element. |
| 70 | */ |
| 71 | function _hide(notification) { |
| 72 | notification.addClass(`${CSS_PREFIX}-notification--is-hidden`); |
| 73 | |
| 74 | $timeout(function waitBeforeDeleting() { |
| 75 | notification.remove(); |
| 76 | }, _TRANSITION_DURATION); |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * Build the notification template. |