Bug Tracker

Ticket #2214: elements.patch

File elements.patch, 0.7 kB (added by scott.gonzalez, 8 months ago)
  • fx.magnifier.js

     
    3434        o.magnification = o.magnification || 2; 
    3535        o.baseline = o.baseline || 0; 
    3636        o.verticalLine =  o.verticalLine != undefined ? o.verticalLine : -0.5; 
     37        o.elements = o.elements || '> *'; 
    3738         
    3839        this.pp = $(el).offset({ border: false }); 
    3940         
    40         $('> *', el).each(function() { 
     41        $(o.elements, el).each(function() { 
    4142            var co = $(this).offset({ border: false }); 
    4243            if(self.options.overlap) var cp = $(this).position(); 
    4344            self.items.push([this, co, [$(this).width(),$(this).height()], (cp || null)]);