> Try console.log(typeof c.m) That will look up a property "m" on the `c` object. You mean:
console.log(typeof c[m]); ...which will look up a property using the name contained by the `m` variable, rather than the property with the name "m". -- T.J. ;-) On Mar 18, 7:19 am, mmerlin <mmerlin.p...@gmail.com> wrote: > greg, > > Nothing to do with Prototype. Standard javascript / DOM > > > If I do: > > for (m in c) console.log(m) > > I get a nice list of all variables and methods, but typeof m always > > returns 'string'. > > for (a in b) > always sets 'a' to be a string. It is the 'name' of the property in > 'b'. > > Try console.log(typeof c.m) > > -- > Phil -- 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.