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:
authorJacob Thornton <jacobthornton@gmail.com>2015-08-13 07:12:03 +0300
committerJacob Thornton <jacobthornton@gmail.com>2015-08-13 07:12:03 +0300
commit11abb0f7e94771bcf604c72b34f6688e6aa3a290 (patch)
tree35266bd178dc46aa2371b41d88e4c5b142749651 /js/dist/alert.js
parent9bdb6d13f606ec18d808a30e5ebc28ec3eb82a4b (diff)
fix modal
Diffstat (limited to 'js/dist/alert.js')
-rw-r--r--js/dist/alert.js39
1 files changed, 19 insertions, 20 deletions
diff --git a/js/dist/alert.js b/js/dist/alert.js
index 876a5f3d04..a3f2161838 100644
--- a/js/dist/alert.js
+++ b/js/dist/alert.js
@@ -34,7 +34,7 @@ var Alert = (function ($) {
var Event = {
CLOSE: 'close' + EVENT_KEY,
CLOSED: 'closed' + EVENT_KEY,
- CLICK_DATA_API: 'click' + EVENT_KEY + '' + DATA_API_KEY
+ CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY
};
var ClassName = {
@@ -56,6 +56,14 @@ var Alert = (function ($) {
this._element = element;
}
+ /**
+ * ------------------------------------------------------------------------
+ * Data Api implementation
+ * ------------------------------------------------------------------------
+ */
+
+ // getters
+
_createClass(Alert, [{
key: 'close',
@@ -79,11 +87,11 @@ var Alert = (function ($) {
$.removeData(this._element, DATA_KEY);
this._element = null;
}
- }, {
- key: '_getRootElement',
// private
+ }, {
+ key: '_getRootElement',
value: function _getRootElement(element) {
var parent = false;
var selector = Util.getSelectorFromElement(element);
@@ -122,19 +130,11 @@ var Alert = (function ($) {
value: function _destroyElement(element) {
$(element).detach().trigger(Event.CLOSED).remove();
}
- }], [{
- key: 'VERSION',
-
- // getters
-
- get: function () {
- return VERSION;
- }
- }, {
- key: '_jQueryInterface',
// static
+ }], [{
+ key: '_jQueryInterface',
value: function _jQueryInterface(config) {
return this.each(function () {
var $element = $(this);
@@ -161,17 +161,16 @@ var Alert = (function ($) {
alertInstance.close(this);
};
}
+ }, {
+ key: 'VERSION',
+ get: function get() {
+ return VERSION;
+ }
}]);
return Alert;
})();
- /**
- * ------------------------------------------------------------------------
- * Data Api implementation
- * ------------------------------------------------------------------------
- */
-
$(document).on(Event.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert()));
/**
@@ -189,4 +188,4 @@ var Alert = (function ($) {
return Alert;
})(jQuery);
-//# sourceMappingURL=alert.js.map \ No newline at end of file
+//# sourceMappingURL=alert.js.map