Hi,

If I assume 'input' is defined in the second example (you show it
defined in the first example but not the second), I'm not seeing an
error.

Can you produce a small, self-contained example[1] of the problem?

[1] http://proto-scripty.wikidot.com/self-contained-test-page

FWIW,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available

On Aug 10, 11:08 am, "Arnaud F." <arnaud.fe...@gmail.com> wrote:
> Hello,
>
> I don't know why but :
>
> ____
> input = 'prototypes'
> bool = input.endsWith('n');
> bool = bool || input.endsWith('s');
> alert(bool);
> ____
>
> works fine but :
>
> ____
> alert(input.endsWith('n') || input.endsWith('s'));
> ____
>
> return me an error (IE6)
>
> What I've do wrong?
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to