[Laszlo-reviews] For Review: Change 20100601-bargull-cIi Summary: update dguide delegates chapter

André Bargull andre.bargull at udo.edu
Tue Jun 1 07:22:07 PDT 2010


Change 20100601-bargull-cIi by bargull at Bargull02 on 2010-06-01 16:06:17
in /home/anba/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: update dguide delegates chapter

Bugs Fixed: LPP-8973 (developers/delegates.html Example 30.1)

Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: henry

Details:
delegates.dbk:
- updated to use "lz.Delegate" instead of "LzDelegate"
- removed obsolete memory management example
- added note that a method referenced by a delegate needs to accept an 
argument
- changed explanation how delegates expand to code to use <method> 
instead of 'this.m$ = function(){...}'. <method> is a known structure, 
the other form might be confusing for beginners, because of the use of 
'this'
- removed explicit reference to an example of the RPC chapter, because 
there is no example named "Using delegates as attributes", it's just 
that a few examples in that chapter use once-constraints with delegates

Updated examples to use "lz.Delegate" and added optional arguments to 
the delegate methods.



Tests:
visual inspection

Files:
M docs/src/developers/delegates.dbk
M docs/src/developers/programs/delegates-$1.lzx
M docs/src/developers/programs/delegates-$3.lzx
M docs/src/developers/programs/delegates-$4.lzx

Changeset: 
http://svn.openlaszlo.org/openlaszlo/patches/20100601-bargull-cIi.tar



More information about the Laszlo-reviews mailing list