[Laszlo-dev] API nits
promanik at laszlosystems.com
Thu Apr 17 20:15:49 PDT 2008
I need some advice on how to handle some deviations from the API.
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.
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?
More information about the Laszlo-dev