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:
authorfat <fat@folders.local>2015-05-08 03:07:38 +0300
committerfat <fat@folders.local>2015-05-08 03:14:38 +0300
commit660505188241418ffda53b5eb848defecd5f57e1 (patch)
treeec0895cb5267cc798f386f96caca653a7fe191f1 /js/dist/alert.js
parentc3a79b1a8c2fa8d7fc8edcd3e626dad8b45d5dc3 (diff)
button -> es6
Diffstat (limited to 'js/dist/alert.js')
-rw-r--r--js/dist/alert.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/js/dist/alert.js b/js/dist/alert.js
index 76b280a0c3..4226dd61a7 100644
--- a/js/dist/alert.js
+++ b/js/dist/alert.js
@@ -11,7 +11,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
* --------------------------------------------------------------------------
*/
-var Alert = (function () {
+var Alert = (function ($) {
/**
* ------------------------------------------------------------------------
@@ -62,6 +62,8 @@ var Alert = (function () {
// public
value: function close(element) {
+ element = element || this.element;
+
var rootElement = this._getRootElement(element);
var customEvent = this._triggerCloseEvent(rootElement);
@@ -167,10 +169,10 @@ var Alert = (function () {
$.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);
//# sourceMappingURL=alert.js.map \ No newline at end of file