From: Pascal B. <pa...@dy...> - 2001-02-22 21:09:46
|
> i don't think ns 6 is a true DOM browser yet > and also if that's the case then code like : ---- snip ---- > and this for now it's supported only on ns 6 may be ie 6 Agreed, that's why I mentioned this as the first step for DOM compatibility.. at this point NS6 is the best test for that (don't konquer this fact) and once these if statements are in place.. we can start to work towards real DOM compatibility (if ever needed) > > * addChild() change > > AddChild currently supports multiple children as parameter at > once.. no body > > uses it, no body should. > > I actually use it a lot and saves a lot of lines of code when u > have some layer: > > DynAPI.document.addChild(layer1) > DynAPI.document.addChild(layer2) > DynAPI.document.addChild(layer3) > DynAPI.document.addChild(layer4) > DynAPI.document.addChild(layer5) > DynAPI.document.addChild(layer6) > > DynAPI.document.addChild(layer1,layer2,layer3,layer4,layer5,layer6) > > sorry I like the second better I've never seen any widget or example use it.. and it really saves alot (getting length of an array takes time, and in a for loop it takes more time..) .. any other takes on this? > wouldn't be enough to check for arguments.length and do an if > else that will support both that also takes more time then passing the variable your work with as parameter... en speed is still an issue (ask around ;-) Pascal Bestebroer pa...@dy... http://www.dynamic-core.net |