mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-16 18:44:01 +02:00
carousel -> es6
This commit is contained in:
6
js/dist/alert.js
vendored
6
js/dist/alert.js
vendored
@@ -51,9 +51,7 @@ var Alert = (function ($) {
|
||||
function Alert(element) {
|
||||
_classCallCheck(this, Alert);
|
||||
|
||||
if (element) {
|
||||
this.element = element;
|
||||
}
|
||||
this._element = element;
|
||||
}
|
||||
|
||||
_createClass(Alert, [{
|
||||
@@ -62,7 +60,7 @@ var Alert = (function ($) {
|
||||
// public
|
||||
|
||||
value: function close(element) {
|
||||
element = element || this.element;
|
||||
element = element || this._element;
|
||||
|
||||
var rootElement = this._getRootElement(element);
|
||||
var customEvent = this._triggerCloseEvent(rootElement);
|
||||
|
Reference in New Issue
Block a user