diff options
| author | XhmikosR <[email protected]> | 2015-04-26 13:53:45 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2015-04-28 11:03:37 +0300 |
| commit | 3e7ca3bbc8eaa60013d4ab9f2edd42f6dcd8dd4b (patch) | |
| tree | 968eee9693cf578b4f3f2991f4a482019cf4cf43 /js/tooltip.js | |
| parent | 4e027718a816f50e9d87acd890644b8f0ecce856 (diff) | |
| download | bootstrap-3e7ca3bbc8eaa60013d4ab9f2edd42f6dcd8dd4b.tar.xz bootstrap-3e7ca3bbc8eaa60013d4ab9f2edd42f6dcd8dd4b.zip | |
Minor lint tweaks.
Diffstat (limited to 'js/tooltip.js')
| -rw-r--r-- | js/tooltip.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/tooltip.js b/js/tooltip.js index f48dcfb70..af1483aba 100644 --- a/js/tooltip.js +++ b/js/tooltip.js @@ -239,8 +239,8 @@ if (isNaN(marginTop)) marginTop = 0 if (isNaN(marginLeft)) marginLeft = 0 - offset.top = offset.top + marginTop - offset.left = offset.left + marginLeft + offset.top += marginTop + offset.left += marginLeft // $.fn.offset doesn't round pixel values // so we use setOffset directly with our own function B-0 @@ -322,7 +322,7 @@ Tooltip.prototype.fixTitle = function () { var $e = this.$element - if ($e.attr('title') || typeof ($e.attr('data-original-title')) != 'string') { + if ($e.attr('title') || typeof $e.attr('data-original-title') != 'string') { $e.attr('data-original-title', $e.attr('title') || '').attr('title', '') } } |
