Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2017-12-16 15:00:38 +0300
committerXhmikosR <xhmikosr@gmail.com>2018-01-11 19:48:46 +0300
commit80d0943b95984bfaf4997d2198d467876d294bd8 (patch)
treefa2eb4c869753b6e20c771a928da460587f38fdf /js/src/alert.js
parent6d336502c7e26c4cc5b35f1d7a19c067b774cb1f (diff)
Comply to the new rules.
Diffstat (limited to 'js/src/alert.js')
-rw-r--r--js/src/alert.js21
1 files changed, 4 insertions, 17 deletions
diff --git a/js/src/alert.js b/js/src/alert.js
index 9f17d5ed0e..147701bfe2 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