diff options
author | Jacob Thornton <jacobthornton@gmail.com> | 2015-08-13 07:12:03 +0300 |
---|---|---|
committer | Jacob Thornton <jacobthornton@gmail.com> | 2015-08-13 07:12:03 +0300 |
commit | 11abb0f7e94771bcf604c72b34f6688e6aa3a290 (patch) | |
tree | 35266bd178dc46aa2371b41d88e4c5b142749651 /js/dist/button.js | |
parent | 9bdb6d13f606ec18d808a30e5ebc28ec3eb82a4b (diff) |
fix modal
Diffstat (limited to 'js/dist/button.js')
-rw-r--r-- | js/dist/button.js | 49 |
1 files changed, 24 insertions, 25 deletions
diff --git a/js/dist/button.js b/js/dist/button.js index fe6cfe9818..391809d3f9 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 |