diff options
Diffstat (limited to 'js/dist/popover.js')
-rw-r--r-- | js/dist/popover.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/js/dist/popover.js b/js/dist/popover.js index da64dc486a..534593be71 100644 --- a/js/dist/popover.js +++ b/js/dist/popover.js @@ -4,6 +4,8 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } +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); } + /** * -------------------------------------------------------------------------- * Bootstrap (v4.0.0-beta.2): popover.js @@ -23,15 +25,18 @@ var Popover = function ($) { var JQUERY_NO_CONFLICT = $.fn[NAME]; var CLASS_PREFIX = 'bs-popover'; var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g'); - var Default = $.extend({}, Tooltip.Default, { + + var Default = _extends({}, Tooltip.Default, { placement: 'right', trigger: 'click', content: '', template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>' }); - var DefaultType = $.extend({}, Tooltip.DefaultType, { + + var DefaultType = _extends({}, Tooltip.DefaultType, { content: '(string|element|function)' }); + var ClassName = { FADE: 'fade', SHOW: 'show' |