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:
authorMark Otto <markdotto@gmail.com>2017-12-23 03:21:54 +0300
committerMark Otto <markdotto@gmail.com>2017-12-23 03:21:54 +0300
commit935d45f461e8448b8862e16cde35a3737d6649fd (patch)
tree9a3cedbc41384726b709041a552490de08c2f085 /js/dist/modal.js
parent13150872c6637d0d224aa9d14fe8e103aff3139e (diff)
dist
Diffstat (limited to 'js/dist/modal.js')
-rw-r--r--js/dist/modal.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/js/dist/modal.js b/js/dist/modal.js
index 0ec299c3e2..ea738107a1 100644
--- a/js/dist/modal.js
+++ b/js/dist/modal.js
@@ -1,3 +1,5 @@
+function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
+
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); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
@@ -206,7 +208,7 @@ var Modal = function ($) {
_proto._getConfig = function _getConfig(config) {
- config = $.extend({}, Default, config);
+ config = _extends({}, Default, config);
Util.typeCheckConfig(NAME, config, DefaultType);
return config;
};
@@ -490,7 +492,7 @@ var Modal = function ($) {
return this.each(function () {
var data = $(this).data(DATA_KEY);
- var _config = $.extend({}, Modal.Default, $(this).data(), typeof config === 'object' && config);
+ var _config = _extends({}, Modal.Default, $(this).data(), typeof config === 'object' && config);
if (!data) {
data = new Modal(this, _config);
@@ -540,7 +542,7 @@ var Modal = function ($) {
target = $(selector)[0];
}
- var config = $(target).data(DATA_KEY) ? 'toggle' : $.extend({}, $(target).data(), $(this).data());
+ var config = $(target).data(DATA_KEY) ? 'toggle' : _extends({}, $(target).data(), $(this).data());
if (this.tagName === 'A' || this.tagName === 'AREA') {
event.preventDefault();