[Laszlo-dev] API nits

Philip Romanik promanik at laszlosystems.com
Thu Apr 17 20:15:49 PDT 2008


Hi Tucker,

I need some advice on how to handle some deviations from the API.

LzNode.childOf(node)
   I need a second argument because childOf() is also a documented 
API call for LzDataNode. When I originally did the swf9 port I 
renamed LzDataNode.childOf() to be childOfNode(). However, childOf() 
is the documented API call. To fix, I added a definition of childOf() 
in LzMiniNode and added a second argument. The API deviation is that 
LzNode.childOf now takes a second argument that is ignored.

LzParam.parseQueryString()
   I made this a static method, but the API documents this as a 
regular method. Should I change this? swf9 doesn't allow calling a 
static using this.

lztest-lzparams.lzx has lines that look like this:
   lp = new LzParam();
This works in dhtml/swf but generates an error in swf9. This needs to be
   var lp = new LzParam();

Won't this be a big headache for some users?

Thanks!

Phil



More information about the Laszlo-dev mailing list