Actually the method appears to be createChildren -- that is, not  
makeChild.    (As a parent myself, I appreciate the difference).

Anyway, it's discussed in the Developer's Guide here:

http://www.openlaszlo.org/lps-latest/docs/guide/class- 
inheritance.html#d0e17877

Is there anything useful I can say about when to use this method versus  
using the "new" constructor function?

Tucker says that "we need to clean up this interface".  Is there a  
chance that it will be changed for 4.0?  If so, I'll leave it alone for  
now.  If not I would like to clear this up, as there are a few related  
bugs that I would like to close out.

Thanks

jrs

On Apr 12, 2006, at 7:33 AM, P T Withington wrote:

> We really need to clean up this interface.  There is another interface  
> LzNode.makeChild, which is an alternative.  Neither is very pretty.
>
> On 2006-04-11, at 09:46 EDT, John Sundman wrote:
>
>> I've been paying attention to this thread.
>>
>> The fine art of creating new classes in script is, in fact, not very
>> well explained in Developer's Guide.  I have a JIRA task against this,
>> and hope to get to it next month.
>>
>> In the meantime I'm happy that people are finding the information they
>> need through the limited documentaton that is available and with the
>> help of the community.
>>
>> jrs
>>
>> On Apr 11, 2006, at 9:36 AM, Dan Stowell wrote:
>>
>>>> (For the interested newbies like myself: classes have a constructor
>>>> that you
>>>> can use to specify the parent, and the attributes, so when I changed
>>>> my call to:
>>>> var v = new hrule(parent, {width: this.parent.width,
>>>>    bgcolor: this.linecolor});
>>>> it was happy.)
>>>
>>> I should have read all your posts before replying to the first. John,
>>> our doc guy, will be happy that you found the answer to your  
>>> question.
>>>
>>> Dan
>>>
>>> _______________________________________________
>>> Laszlo-user mailing list
>>> [email protected]
>>> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>>
>> _______________________________________________
>> Laszlo-user mailing list
>> [email protected]
>> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to