2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-11 18:02:28 +03: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
+2 -4
View File
@@ -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);