aboutsummaryrefslogtreecommitdiff
path: root/js/dist/button.js
diff options
context:
space:
mode:
authorThomas McDonald <[email protected]>2015-08-12 21:09:44 -0700
committerThomas McDonald <[email protected]>2015-08-12 21:09:44 -0700
commit35f064f96ccbadfbb830ae05e2f00d60ec215e68 (patch)
treede8cf38186002d5d7c1a5231c65106e7c899111f /js/dist/button.js
parenta8023edf16975d5ec34a6e4056df3c6404de8c8d (diff)
parentf2ae3ea04309cabedabf8160c771b6b465c912e6 (diff)
downloadbootstrap-35f064f96ccbadfbb830ae05e2f00d60ec215e68.tar.xz
bootstrap-35f064f96ccbadfbb830ae05e2f00d60ec215e68.zip
Merge branch 'v4' of github.com:twbs/derpstrap into v4
Diffstat (limited to 'js/dist/button.js')
-rw-r--r--js/dist/button.js49
1 files changed, 24 insertions, 25 deletions
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