diff options
| author | Mark Otto <[email protected]> | 2016-11-26 19:17:23 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2016-11-26 19:17:23 -0800 |
| commit | 0b8a2819201076a8e93cd387aecf13d8c419990e (patch) | |
| tree | 997e3faa3b00d0d29b7b35fefae9335ebbba980a /docs/dist/js/bootstrap.js | |
| parent | 23301b21cd1a36611bf35a9f71cdf1a7293741de (diff) | |
| download | bootstrap-0b8a2819201076a8e93cd387aecf13d8c419990e.tar.xz bootstrap-0b8a2819201076a8e93cd387aecf13d8c419990e.zip | |
grunt
Diffstat (limited to 'docs/dist/js/bootstrap.js')
| -rw-r--r-- | docs/dist/js/bootstrap.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/dist/js/bootstrap.js b/docs/dist/js/bootstrap.js index 35c22c59b..d871f4083 100644 --- a/docs/dist/js/bootstrap.js +++ b/docs/dist/js/bootstrap.js @@ -5,7 +5,7 @@ */ if (typeof jQuery === 'undefined') { - throw new Error('Bootstrap\'s JavaScript requires jQuery') + throw new Error('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.') } +function ($) { @@ -2732,7 +2732,8 @@ var Tooltip = function ($) { selector: false, placement: 'top', offset: '0 0', - constraints: [] + constraints: [], + container: false }; var DefaultType = { @@ -2745,7 +2746,8 @@ var Tooltip = function ($) { selector: '(string|boolean)', placement: '(string|function)', offset: 'string', - constraints: 'array' + constraints: 'array', + container: '(string|element|boolean)' }; var AttachmentMap = { @@ -2921,7 +2923,9 @@ var Tooltip = function ($) { var attachment = this._getAttachment(placement); - $(tip).data(this.constructor.DATA_KEY, this).appendTo(document.body); + var container = this.config.container === false ? document.body : $(this.config.container); + + $(tip).data(this.constructor.DATA_KEY, this).appendTo(container); $(this.element).trigger(this.constructor.Event.INSERTED); |
