2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

button -> es6

This commit is contained in:
fat
2015-05-07 17:07:38 -07:00
parent c3a79b1a8c
commit 6605051882
14 changed files with 338 additions and 383 deletions
+5 -3
View File
@@ -8,7 +8,7 @@ import Util from './util'
* --------------------------------------------------------------------------
*/
const Alert = (() => {
const Alert = (($) => {
/**
@@ -58,6 +58,8 @@ const Alert = (() => {
// public
close(element) {
element = element || this.element
let rootElement = this._getRootElement(element)
let customEvent = this._triggerCloseEvent(rootElement)
@@ -167,12 +169,12 @@ const Alert = (() => {
$.fn[NAME] = Alert._jQueryInterface
$.fn[NAME].Constructor = Alert
$.fn[NAME].noConflict = function () {
$.fn[NAME] = Alert._JQUERY_NO_CONFLICT
$.fn[NAME] = JQUERY_NO_CONFLICT
return Alert._jQueryInterface
}
return Alert
})()
})(jQuery)
export default Alert