From: <ma...@ab...> - 2001-02-23 08:14:34
|
an idea is to put the mutiple childen-addChild() into an extension, so people can use it if they want. maybe togother with some other functions we move from the core api to an extension, just to speed things up and hold size down. just a dynapi.ext.common.js or something /m > -----Original Message----- > From: dyn...@li... > [mailto:dyn...@li...]On Behalf Of Pascal > Bestebroer > Sent: den 22 februari 2001 22:10 > To: dyn...@li... > Subject: RE: [Dynapi-Dev] DynAPI current things > > > > 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 > > > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev |