diff options
author | fat <fat@folders.local> | 2015-05-08 08:26:40 +0300 |
---|---|---|
committer | fat <fat@folders.local> | 2015-05-08 08:26:40 +0300 |
commit | 1b183e2ff796fc22aba8a8cac074a306c083d018 (patch) | |
tree | ecc5298aab8d67841e0a765e44feb0b70c872050 /js/dist/alert.js | |
parent | 660505188241418ffda53b5eb848defecd5f57e1 (diff) |
carousel -> es6
Diffstat (limited to 'js/dist/alert.js')
-rw-r--r-- | js/dist/alert.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/js/dist/alert.js b/js/dist/alert.js index 4226dd61a7..35e19874c6 100644 --- a/js/dist/alert.js +++ b/js/dist/alert.js @@ -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); |