Bug Tracker

Changeset 3956

Show
Ignore:
Timestamp:
11/27/07 23:35:48 (1 year ago)
Author:
aaronchi
Message:

restore opacity

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/fx/experimental/fx.fade.js

    r3955 r3956  
    66       
    77      // Create element 
    8       var el = $(this); 
     8      var el = $(this), props = ['opacity']; 
    99       
    1010      // Set options 
     
    1313       
    1414      // Adjust 
    15       el.show(); // Show 
     15      $.ec.save(el, props); el.show(); // Save & Show 
    1616      if(mode == 'show') el.css({opacity: 0}); // Shift 
    1717       
     
    2222      el.animate(animation, o.speed, o.options.easing, function() { 
    2323        if(mode == 'hide') el.hide(); // Hide 
     24        if(mode != 'effect') $.ec.restore(el, props); // Restore 
    2425        if(o.callback) o.callback.apply(this, arguments); // Callback 
    2526      });