rem: beforeSetup: function(effect) { with(Element) { [makePositioned,makeClipping].call(effect.element); }}, afterFinishInternal: function(effect) { with(Element) { [hide,undoClipping,undoPositioned].call(effect.element); setStyle(effect.element, {opacity: oldOpacity}); }} 
add: beforeSetup: function(effect) { effect.element.makePositioned(); effect.element.makeClipping(); }, afterFinishInternal: function(effect) { effect.element.hide(); effect.element.undoClipping(); effect.element.undoPositioned(); effect.element.setStyle({opacity: oldOpacity}); } 
context: Effect.SwitchOff = function(element) {  element = $(element);  var oldOpacity = Element.getInlineOpacity(element);  return new Effect.Appear(element, {     duration: 0.4,    from: 0,    transition: Effect.Transitions.flicker,    afterFinishInternal: function(effect) {      new Effect.Scale(effect.element, 1, {         duration: 0.3, scaleFromCenter: true,        scaleX: false, scaleContent: false, restoreAfterFinish: true,        beforeSetup: function(effect) { with(Element) {          [makePositioned,makeClipping].call(effect.element);        }},        afterFinishInternal: function(effect) { with(Element) {          [hide,undoClipping,undoPositioned].call(effect.element);          setStyle(effect.element, {opacity: oldOpacity});        }}      })    }  });}
meta: 1782	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1782/a458ebb30ee90b66048c7fd858f5f39957a9be68/effects.js/clean/webapp/sandbox/scripts/effects.js