mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
Fixed when placement is a function
This commit is contained in:
parent
fc053ac8b2
commit
2cea94e892
4
js/bootstrap-tooltip.js
vendored
4
js/bootstrap-tooltip.js
vendored
@ -115,7 +115,7 @@
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
inside = /in/.test(placement)
|
||||
@ -267,4 +267,4 @@
|
||||
, template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'
|
||||
}
|
||||
|
||||
}( window.jQuery )
|
||||
}( window.jQuery )
|
||||
|
Loading…
Reference in New Issue
Block a user