On May 10, 7:22 am, "T.J. Crowder" <[email protected]> wrote: > On May 10, 8:47 am, Bertilo Wennergren <[email protected]> wrote: > > > On Mon, May 9, 2011 at 15:12, sclaflin <[email protected]> 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 > > [email protected]http://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 [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.
