|
1 | 1 | /*
|
2 | 2 |
|
3 |
| -Tooltipster 3.1.1 | 2014-01-15 |
| 3 | +Tooltipster 3.1.2 | 2014-03-17 |
4 | 4 | A rockin' custom tooltip jQuery plugin
|
5 | 5 |
|
6 | 6 | Developed by Caleb Jacob under the MIT license http://opensource.org/licenses/MIT
|
@@ -53,7 +53,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
53 | 53 |
|
54 | 54 | // list of instance variables
|
55 | 55 |
|
56 |
| - this.bodyOverflowX; |
57 | 56 | // stack of custom callbacks provided as parameters to API methods
|
58 | 57 | this.callbacks = {
|
59 | 58 | hide: [],
|
@@ -295,10 +294,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
295 | 294 | // the timer (if any) will start when the tooltip has fully appeared after its transition
|
296 | 295 | var extraTime = self.options.speed;
|
297 | 296 |
|
298 |
| - // disable horizontal scrollbar to keep overflowing tooltips from jacking with it and then restore it to its previous value |
299 |
| - self.bodyOverflowX = $('body').css('overflow-x'); |
300 |
| - $('body').css('overflow-x', 'hidden'); |
301 |
| - |
302 | 297 | // get some other settings related to building the tooltip
|
303 | 298 | var animation = 'tooltipster-' + self.options.animation,
|
304 | 299 | animationSpeed = '-webkit-transition-duration: '+ self.options.speed +'ms; -webkit-animation-duration: '+ self.options.speed +'ms; -moz-transition-duration: '+ self.options.speed +'ms; -moz-animation-duration: '+ self.options.speed +'ms; -o-transition-duration: '+ self.options.speed +'ms; -o-animation-duration: '+ self.options.speed +'ms; -ms-transition-duration: '+ self.options.speed +'ms; -ms-animation-duration: '+ self.options.speed +'ms; transition-duration: '+ self.options.speed +'ms; animation-duration: '+ self.options.speed +'ms;',
|
@@ -530,10 +525,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
530 | 525 | // unbind orientationchange, scroll and resize listeners
|
531 | 526 | $(window).off('.'+ self.namespace);
|
532 | 527 |
|
533 |
| - $('body') |
534 |
| - // unbind any auto-closing click/touch listeners |
535 |
| - .off('.'+ self.namespace) |
536 |
| - .css('overflow-x', self.bodyOverflowX); |
| 528 | + // unbind any auto-closing click/touch listeners |
| 529 | + $('body').off('.'+ self.namespace); |
537 | 530 |
|
538 | 531 | // unbind any auto-closing hover listeners
|
539 | 532 | self.$elProxy.off('.'+ self.namespace + '-autoClose');
|
|
0 commit comments