app/jquery/jquery-bt-0.7.js
changeset 815 7b8c65531fbd
parent 440 3a60d5e5c14e
equal deleted inserted replaced
814:25ffebd9fa8f 815:7b8c65531fbd
   116   }
   116   }
   117   else {
   117   else {
   118     var contentSelect = false;
   118     var contentSelect = false;
   119   }
   119   }
   120 
   120 
       
   121   var tooltips_pool = [];
       
   122 
       
   123 
   121   return this.each(function(index) {
   124   return this.each(function(index) {
       
   125 
       
   126     tooltips_pool.push(this);
   122 
   127 
   123     var opts = jQuery.extend(false, jQuery.fn.bt.defaults, options);
   128     var opts = jQuery.extend(false, jQuery.fn.bt.defaults, options);
   124 
   129 
   125     // clean up the options
   130     // clean up the options
   126     opts.spikeLength = numb(opts.spikeLength);
   131     opts.spikeLength = numb(opts.spikeLength);
   127     opts.spikeGirth = numb(opts.spikeGirth);
   132     opts.spikeGirth = numb(opts.spikeGirth);
   128     opts.overlap = numb(opts.overlap);
   133     opts.overlap = numb(opts.overlap);
   129 
   134 
   130     var turnOn = function () {
   135     var turnOn = function () {
       
   136 
       
   137       for (var x in tooltips_pool) {
       
   138         turnOff.apply(tooltips_pool[x]);
       
   139       }
   131 
   140 
   132       if (typeof $(this).data('bt-box') == 'object') {
   141       if (typeof $(this).data('bt-box') == 'object') {
   133         // if there's already a popup, remove it before creating a new one.
   142         // if there's already a popup, remove it before creating a new one.
   134         turnOff.apply(this);
   143         turnOff.apply(this);
   135       }
   144       }