diff options
| author | XhmikosR <[email protected]> | 2017-12-16 14:00:38 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2018-01-11 18:48:46 +0200 |
| commit | 80d0943b95984bfaf4997d2198d467876d294bd8 (patch) | |
| tree | fa2eb4c869753b6e20c771a928da460587f38fdf /js/src/alert.js | |
| parent | 6d336502c7e26c4cc5b35f1d7a19c067b774cb1f (diff) | |
| download | bootstrap-80d0943b95984bfaf4997d2198d467876d294bd8.tar.xz bootstrap-80d0943b95984bfaf4997d2198d467876d294bd8.zip | |
Comply to the new rules.
Diffstat (limited to 'js/src/alert.js')
| -rw-r--r-- | js/src/alert.js | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/js/src/alert.js b/js/src/alert.js index 9f17d5ed0..147701bfe 100644 --- a/js/src/alert.js +++ b/js/src/alert.js @@ -1,7 +1,6 @@ import $ from 'jquery' import Util from './util' - /** * -------------------------------------------------------------------------- * Bootstrap (v4.0.0-beta.3): alert.js @@ -10,8 +9,6 @@ import Util from './util' */ const Alert = (($) => { - - /** * ------------------------------------------------------------------------ * Constants @@ -42,7 +39,6 @@ const Alert = (($) => { SHOW : 'show' } - /** * ------------------------------------------------------------------------ * Class Definition @@ -50,20 +46,17 @@ const Alert = (($) => { */ class Alert { - constructor(element) { this._element = element } - - // getters + // Getters static get VERSION() { return VERSION } - - // public + // Public close(element) { element = element || this._element @@ -83,8 +76,7 @@ const Alert = (($) => { this._element = null } - - // private + // Private _getRootElement(element) { const selector = Util.getSelectorFromElement(element) @@ -129,8 +121,7 @@ const Alert = (($) => { .remove() } - - // static + // Static static _jQueryInterface(config) { return this.each(function () { @@ -157,10 +148,8 @@ const Alert = (($) => { alertInstance.close(this) } } - } - /** * ------------------------------------------------------------------------ * Data Api implementation @@ -173,7 +162,6 @@ const Alert = (($) => { Alert._handleDismiss(new Alert()) ) - /** * ------------------------------------------------------------------------ * jQuery @@ -188,7 +176,6 @@ const Alert = (($) => { } return Alert - })($) export default Alert |
