From 11abb0f7e94771bcf604c72b34f6688e6aa3a290 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Wed, 12 Aug 2015 21:12:03 -0700 Subject: fix modal --- js/dist/alert.js | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) (limited to 'js/dist/alert.js') 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 -- cgit v1.2.3