That is budget, I second the idea that the default transition should
be in the DefaulOptions.

Submit a ticket for it...



On Sep 24, 4:39 pm, Tom Nichols <[EMAIL PROTECTED]> wrote:
> Looking at the following lines from the effects.js: (in
> Effects.Base.start )
>
>     if (options && options.transition === false) options.transition =
> Effect.Transitions.linear;
>     this.options      =
> Object.extend(Object.extend({ },Effect.DefaultOptions), options ||
> { });
>
> It looks like "linear" will be used unless I specify a transition
> explicitly every time I call an effect.  Why is that first line
> explicitly putting Effect.Transitions.linear into the options, rather
> than putting it once in Effect.DefaultOptions?  I realize I can modify
> effects.js but I really don't want to do that (for one, it's global,
> rather than being able to call Effects.DefaultOptions per-page) and
> for another it means merging rather than replacing whenever I update
> Script.aculo.us.
>
> Thanks again.
> -Tom
>
> On Sep 24, 9:25 am, bluezehn <[EMAIL PROTECTED]> wrote:
>
> > Default options are set in the source, and in the base effect and sub
> > effects have custom options "extended" onto them with object.extend.
> > Since the options I believe are stored outside of class definitions,
> > it's possible to extend/override them at the top of your file, as long
> > as that's after the prototype/scriptaculous source, by running an
> > object.extend on them. For how to do this, take a look at the source
> > because what that's doing at the moment is getting the default options
> > and extending custom options onto them - if you extend the default
> > options first, whenever the effect code runs the default options it
> > will know about are the ones you will have extended.
>
> > On Sep 24, 1:40 pm, Tom Nichols <[EMAIL PROTECTED]> wrote:
>
> > > Is there a way to set the default transition used by all effects?
> > > Effect.DefaultOptions.transition does not seem to work.  I looked at
> > > the source but nothing stood out.  Even setting the default transition
> > > for individual effects would be nice :)
>
> > > Thanks.
> > > -Tom
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to