mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-04-21 04:40:58 +00: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
1 changed files with 2 additions and 2 deletions
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 a new issue