On 5/28/07, Michael Geary <[EMAIL PROTECTED]> wrote:
1) Get in the habit of using "var" on all your variable assignments, so you don't create global variables accidentally.
On the list. I was at one point working with two copies of this(long story), and it was done on what is obviously the other *grin* figureParent was originally named "parent"(Right, just like .parent() ...). IE didn't like that one bit. 2) Consider using one of the several DOM creator plugins. You can replace
code like this:
Well, the "several" (/lots/, actually) part of that suggestion is one of the things that bugs me. I'm loathe to spend the time right this moment to figure out which of them I like or is better and then impose that decision on users. Also, it's been a while, but I remember trying out one or two of those and just not caring for it. The code seems a bit visually (if not meaningfully) clearer, though frankly not enough for me to care or offset the fact it creates what I see as a not especially necessary dependancy on outside code. I've got a couple other projects like this in mind which may eventually build up into a library, at which point something like this might actually become a consideration.