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/button.js | 49 ++++++++++++++++++++++++------------------------- 1 file changed, 24 insertions(+), 25 deletions(-) (limited to 'js/dist/button.js') diff --git a/js/dist/button.js b/js/dist/button.js index fe6cfe981..391809d3f 100644 --- a/js/dist/button.js +++ b/js/dist/button.js @@ -1,9 +1,3 @@ -'use strict'; - -var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } - /** * -------------------------------------------------------------------------- * Bootstrap (v4.0.0): button.js @@ -11,6 +5,12 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons * -------------------------------------------------------------------------- */ +'use strict'; + +var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } + var Button = (function ($) { /** @@ -42,8 +42,8 @@ var Button = (function ($) { }; var Event = { - CLICK_DATA_API: 'click' + EVENT_KEY + '' + DATA_API_KEY, - FOCUS_BLUR_DATA_API: 'focus' + EVENT_KEY + '' + DATA_API_KEY + ' ' + ('blur' + EVENT_KEY + '' + DATA_API_KEY) + CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY, + FOCUS_BLUR_DATA_API: 'focus' + EVENT_KEY + DATA_API_KEY + ' ' + ('blur' + EVENT_KEY + DATA_API_KEY) }; /** @@ -59,6 +59,14 @@ var Button = (function ($) { this._element = element; } + /** + * ------------------------------------------------------------------------ + * Data Api implementation + * ------------------------------------------------------------------------ + */ + + // getters + _createClass(Button, [{ key: 'toggle', @@ -103,19 +111,11 @@ var Button = (function ($) { $.removeData(this._element, DATA_KEY); this._element = null; } - }], [{ - key: 'VERSION', - - // getters - - get: function () { - return VERSION; - } - }, { - key: '_jQueryInterface', // static + }], [{ + key: '_jQueryInterface', value: function _jQueryInterface(config) { return this.each(function () { var data = $(this).data(DATA_KEY); @@ -130,17 +130,16 @@ var Button = (function ($) { } }); } + }, { + key: 'VERSION', + get: function get() { + return VERSION; + } }]); return Button; })(); - /** - * ------------------------------------------------------------------------ - * Data Api implementation - * ------------------------------------------------------------------------ - */ - $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) { event.preventDefault(); @@ -171,4 +170,4 @@ var Button = (function ($) { return Button; })(jQuery); -//# sourceMappingURL=button.js.map \ No newline at end of file +//# sourceMappingURL=button.js.map -- cgit v1.2.3