diff options
| author | Jacob Thornton <[email protected]> | 2013-08-08 23:08:40 -0700 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2013-08-08 23:08:40 -0700 |
| commit | e46708f7cee19ebe4acf04c71ef71947e6c2e20f (patch) | |
| tree | 3d98f2451e509e4b3b43d5304e63d1878411d8a4 /dist/js/bootstrap.js | |
| parent | dec00eeeafaa1272b8fc3754b8d134e8d358a6ed (diff) | |
| parent | f86f6ee9555819468467d48387becf80c831d34f (diff) | |
| download | bootstrap-e46708f7cee19ebe4acf04c71ef71947e6c2e20f.tar.xz bootstrap-e46708f7cee19ebe4acf04c71ef71947e6c2e20f.zip | |
Merge branch '3.0.0-wip' of github.com:twbs/bootstrap into 3.0.0-wip
Diffstat (limited to 'dist/js/bootstrap.js')
| -rw-r--r-- | dist/js/bootstrap.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js index 65c36b055..5bd8c5b84 100644 --- a/dist/js/bootstrap.js +++ b/dist/js/bootstrap.js @@ -656,7 +656,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") } var $parent = parent && $(parent) if (!data || !data.transitioning) { - if ($parent) $parent.find('[data-toggle=collapse][data-parent=' + parent + ']').not($this).addClass('collapsed') + if ($parent) $parent.find('[data-toggle=collapse][data-parent="' + parent + '"]').not($this).addClass('collapsed') $this[$target.hasClass('in') ? 'addClass' : 'removeClass']('collapsed') } @@ -1245,7 +1245,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") } .addClass(placement) } - var calculatedOffset = this.getCalcuatedOffset(placement, pos, actualWidth, actualHeight) + var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight) this.applyPlacement(calculatedOffset, placement) this.$element.trigger('shown.bs.' + this.type) @@ -1358,7 +1358,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") } }, this.$element.offset()) } - Tooltip.prototype.getCalcuatedOffset = function (placement, pos, actualWidth, actualHeight) { + Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) { return placement == 'bottom' ? { top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2 } : placement == 'top' ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 } : placement == 'left' ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } : |
