> Thanks!
No worries. I should have mentioned -- although I'm sure you realize
-- that you can create the options once and reuse them:
var fxoptRestoreStyle = {
beforeStart: function(effect) {
effect.saveStyle = effect.element.style.cssText;
},
afterFinish: function(effect)
Thanks!
On Fri, Jul 17, 2009 at 10:42 AM, T.J. Crowder wrote:
>
> Hi,
>
> Yeah, bit of a pain that there's no standard way to _remove_ a style
> from the style property entirely. Setting things to "" is not the
> same thing.
>
> However: Effects offer beforeStart and afterFinish callbacks, and
cssText works in all supported browsers and is of course fully unit
tested.
Best,
Tobie
On Jul 17, 4:42 pm, "T.J. Crowder" wrote:
> Hi,
>
> Yeah, bit of a pain that there's no standard way to _remove_ a style
> from the style property entirely. Setting things to "" is not the
> same thing.
>
Hi,
Yeah, bit of a pain that there's no standard way to _remove_ a style
from the style property entirely. Setting things to "" is not the
same thing.
However: Effects offer beforeStart and afterFinish callbacks, and the
style property has this nifty cssText property on it, which suggests
this