Change 20100601-bargull-cIi by barg...@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