jQuery: The Write Less, Do More JavaScript Library

Changeset 5267

Show
Ignore:
Timestamp:
04/18/08 01:11:07 (4 months ago)
Author:
scott.gonzalez
Message:

FX Magnifier: Fixed #2214: Add option for which elements to magnify.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/fx/fx.magnifier.js

    r5059 r5267  
    2626        o.baseline = o.baseline || 0; 
    2727        o.verticalLine =  o.verticalLine != undefined ? o.verticalLine : -0.5; 
     28        o.items = o.items || '> *'; 
    2829         
    2930        this.pp = $(el).offset({ border: false }); 
    3031         
    31         $('> *', el).each(function() { 
     32        $(o.items, el).each(function() { 
    3233            var co = $(this).offset({ border: false }); 
    3334            if(self.options.overlap) var cp = $(this).position();