On Aug 29, 5:48 pm , kangax wrote:
> What about creating something like `getNumAttribute` helper (which
> would parseFloat attribute before returning it)?

Sounds nice. I will try this approach.
Too bad it is not possible to extend the DOM nodes prototype to use it
as a method, but it may be a convenient function.

On Aug 30, 4:37 pm, nlloyds <[EMAIL PROTECTED]> wrote:
> Just a reminder to always, always user the 2nd parameter to parseInt,
> which specifies the radix (usually you'll want 10.) Try
> parseInt("085") to see what I mean.

Thanks for this comment which will prevent some nasty hard-to-find
bugs :o)

Eric
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to