mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-30 22:52:24 +01:00
Merge pull request #995 from renajohn/2.0-wip
Fix bug on tooltips placement when passed as a function
This commit is contained in:
commit
07530073dd
2
js/bootstrap-tooltip.js
vendored
2
js/bootstrap-tooltip.js
vendored
@ -115,7 +115,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
placement = typeof this.options.placement == 'function' ?
|
placement = typeof this.options.placement == 'function' ?
|
||||||
thing.call(this, $tip[0], this.$element[0]) :
|
this.options.placement.call(this, $tip[0], this.$element[0]) :
|
||||||
this.options.placement
|
this.options.placement
|
||||||
|
|
||||||
inside = /in/.test(placement)
|
inside = /in/.test(placement)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user