On May 10, 7:22 am, "T.J. Crowder" <t...@crowdersoftware.com> wrote: > On May 10, 8:47 am, Bertilo Wennergren <berti...@gmail.com> wrote: > > > On Mon, May 9, 2011 at 15:12, sclaflin <st...@steveclaflin.com> wrote: > > > 1. I don't see any reason for the element = $(element) line, other > > > than possibly for the return value; > > > It's probably there to cater for MSIE. > > > -- > > Bertilo Wennergren > > berti...@gmail.comhttp://bertilow.com > > And because you can do `Element.cleanWhitespace("myElementID");` > -- > T.J. Crowder > Independent Software Engineer > tj / crowder software / com > www / crowder software / com
Ahhh, right. I didn't think of that because I had assumed there was some sort of typeof element == 'string' test for that case. -- 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.