From 2cea94e892eabbe5edbca3a51347af57621d672d Mon Sep 17 00:00:00 2001 From: Renault John Lecoultre Date: Fri, 13 Jan 2012 22:33:05 +0100 Subject: [PATCH] Fixed when placement is a function --- js/bootstrap-tooltip.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/bootstrap-tooltip.js b/js/bootstrap-tooltip.js index 241a44e248..8ce30ab82d 100644 --- a/js/bootstrap-tooltip.js +++ b/js/bootstrap-tooltip.js @@ -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: '
' } -}( window.jQuery ) \ No newline at end of file +}( window.jQuery )