1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-27 05:49:07 +02:00

carousel -> es6

This commit is contained in:
fat
2015-05-07 22:26:40 -07:00
parent 6605051882
commit 1b183e2ff7
17 changed files with 966 additions and 236 deletions

View File

@@ -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)