On 12/9/06, Martin Bialasinski <[EMAIL PROTECTED]> wrote:
> On 12/9/06, Peter Michaux <[EMAIL PROTECTED]> wrote:
> > Note also that in the Prototype code
> >
> > if (this.lastValue != value) {
> >
> > should probably be
> >
> > if (this.lastValue !== value) {
> >
> > because both 0 and the empty string '' typecast to false and so 0!=''
> > returns false.
>
> This is true.
I have to retract this statement. lastValue and value are both either
strings or booleans, so a type-safe comparison is not needed. But it
would not hurt either, of cause.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---