mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-02 16:04:07 +03:00
carousel -> es6
This commit is contained in:
+2
-4
@@ -49,16 +49,14 @@ const Alert = (($) => {
|
||||
class Alert {
|
||||
|
||||
constructor(element) {
|
||||
if (element) {
|
||||
this.element = element
|
||||
}
|
||||
this._element = element
|
||||
}
|
||||
|
||||
|
||||
// public
|
||||
|
||||
close(element) {
|
||||
element = element || this.element
|
||||
element = element || this._element
|
||||
|
||||
let rootElement = this._getRootElement(element)
|
||||
let customEvent = this._triggerCloseEvent(rootElement)
|
||||
|
||||
Reference in New Issue
Block a user