Hi,

I was looking over the API docs, and saw readAttribute, and thought to
myself:  I have not been using this...

I do an awful lot of:
if ($(x).id == "foo")
{}
else if ($(x).style == "bar")
{}

... and I am just wondering, is that not wise to do?  Should I be
doing
$(x).readAttribute('id') == "foo" ?

Or does it not matter?

-patrick

-- 
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