diff options
| author | Johann-S <[email protected]> | 2017-04-14 12:05:54 +0200 |
|---|---|---|
| committer | Johann-S <[email protected]> | 2017-05-14 11:41:19 +0200 |
| commit | c21a2b0d92ca78b63bb9ec21ca0fbf9e9206a18e (patch) | |
| tree | a8f06132f88c6a81eaa9c60dc6847a15086031f0 /js/src/tooltip.js | |
| parent | 54a8ab40111dacdf50fad22e6f36d2801ba653c9 (diff) | |
| download | bootstrap-c21a2b0d92ca78b63bb9ec21ca0fbf9e9206a18e.tar.xz bootstrap-c21a2b0d92ca78b63bb9ec21ca0fbf9e9206a18e.zip | |
Remove constraints option and check every options
Diffstat (limited to 'js/src/tooltip.js')
| -rw-r--r-- | js/src/tooltip.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 2c22a7ed4..5f5e3d7bc 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -47,8 +47,7 @@ const Tooltip = (($) => { html : false, selector : false, placement : 'top', - offset : '0 0', - constraints : [], + offset : {}, container : false } @@ -61,8 +60,7 @@ const Tooltip = (($) => { html : 'boolean', selector : '(string|boolean)', placement : '(string|function)', - offset : 'string', - constraints : 'array', + offset : 'number', container : '(string|element|boolean)' } @@ -285,8 +283,10 @@ const Tooltip = (($) => { this._popper = new Popper(this.element, tip, { placement : attachment, - offsets : { - popper : this.config.offset + modifiers : { + offset : { + offset : this.config.offset + } } }) |
