Author: lou
Date: 2008-03-22 07:18:53 -0700 (Sat, 22 Mar 2008)
New Revision: 8348
Modified:
openlaszlo/trunk/docs/component-browser/common.lzx
openlaszlo/trunk/docs/component-browser/components.lzx
openlaszlo/trunk/docs/component-browser/hierarchyview.lzx
openlaszlo/trunk/docs/src/developers/lzunit.dbk
openlaszlo/trunk/docs/src/developers/performance.dbk
openlaszlo/trunk/docs/src/developers/programs/css-$13.lzx
openlaszlo/trunk/docs/src/developers/programs/input-devices-$9.lzx
openlaszlo/trunk/docs/src/developers/programs/testdriven-10.lzx
openlaszlo/trunk/docs/src/developers/programs/testdriven-3.lzx
openlaszlo/trunk/docs/src/developers/programs/testdriven-4.lzx
openlaszlo/trunk/docs/src/developers/programs/testdriven-5.lzx
openlaszlo/trunk/docs/src/developers/programs/testdriven-6.lzx
openlaszlo/trunk/docs/src/developers/programs/testdriven-9.lzx
openlaszlo/trunk/docs/src/developers/tutorials/calculator.dbk
openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$10.lzx
openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$11.lzx
openlaszlo/trunk/docs/src/developers/video.dbk
Log:
Change 20080322-lou-q by [EMAIL PROTECTED] on 2008-03-22 09:58:02 AST
in /Users/lou/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: replace deprecated <method event=> tags with <handler name=>
Bugs Fixed: LPP-5662
Technical Reviewer: (pending)
QA Reviewer: mamye
Doc Reviewer: (pending)
Details: In addition to what was in JIRA, fix the text examples
in the docbook source.
Tests: visual verify for the docs/src stuff
Modified: openlaszlo/trunk/docs/component-browser/common.lzx
===================================================================
--- openlaszlo/trunk/docs/component-browser/common.lzx 2008-03-22 14:03:51 UTC
(rev 8347)
+++ openlaszlo/trunk/docs/component-browser/common.lzx 2008-03-22 14:18:53 UTC
(rev 8348)
@@ -66,14 +66,14 @@
<attribute name="texthilitecolor" value="0x325693" type="number" />
<attribute name="textcolor" value="0x000000" type="number" />
<attribute name="textselectedcolor" value="0xFFFFFF" type="number" />
- <method event="onclick">
+ <handler name="onclick">
var file = (this.file != '' ? this.file : 'lz.' + this.text +
'.html');
var url = canvas.urlprefix + file;
LzBrowser.loadURL('javascript: var wptr = window.open("' + url +
'","laszlo_reference","resizable=1,width=1000,height=700,left=0,top=0,screenX=0,screenY=0,menubar,location,status,scrollbars,toolbar,address");
wptr.focus(); void(0);');
- </method>
- <method event="onmouseup">
+ </handler>
+ <handler name="onmouseup">
setAttribute('fgcolor', this.texthilitecolor)
- </method>
+ </handler>
</class>
<class name="border" defaultplacement="content" bgcolor="0x404040">
Modified: openlaszlo/trunk/docs/component-browser/components.lzx
===================================================================
--- openlaszlo/trunk/docs/component-browser/components.lzx 2008-03-22
14:03:51 UTC (rev 8347)
+++ openlaszlo/trunk/docs/component-browser/components.lzx 2008-03-22
14:18:53 UTC (rev 8348)
@@ -24,10 +24,10 @@
<keyview width="${parent.parent.width - 40 - parent.tv.width -
this.boxsize}" />
</view>
<button name="other" text="See Related Components">
- <method event="onclick">
+ <handler name="onclick">
canvas.treehier.setAttribute('visible', false);
canvas.related.setAttribute('visible', true);
- </method>
+ </handler>
</button>
</view>
@@ -107,16 +107,16 @@
</tabs>
<button name="back" text="See Components Hierarchy">
- <method event="onclick">
+ <handler name="onclick">
canvas.treehier.setAttribute('visible', true);
canvas.related.setAttribute('visible', false);
- </method>
+ </handler>
</button>
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/trunk/docs/component-browser/hierarchyview.lzx
===================================================================
--- openlaszlo/trunk/docs/component-browser/hierarchyview.lzx 2008-03-22
14:03:51 UTC (rev 8347)
+++ openlaszlo/trunk/docs/component-browser/hierarchyview.lzx 2008-03-22
14:18:53 UTC (rev 8348)
@@ -47,11 +47,11 @@
<!-- Do this to get around resource and frame (constrained)
onclick
view problem. (b 3466) -->
<view name="expander">
- <method event="onclick">
+ <handler name="onclick">
if (! classroot.isleaf) {
classroot.setAttribute("open", ! classroot.open);
}
- </method>
+ </handler>
<view name="expander"
resource="$once{classroot.expander}"
frame="${classroot.isleaf ? 3
@@ -61,14 +61,14 @@
onmouseover="setAttribute('fgcolor',
classroot.style.texthilitecolor)"
onmouseout="setAttribute('fgcolor',
classroot.style.textcolor)"
onmousedown="setAttribute('fgcolor',
classroot.style.textselectedcolor)">
- <method event="onclick">
+ <handler name="onclick">
var file = (classroot.file != '' ? classroot.file :
classroot.text + '.html');
var url = canvas.urlprefix + file;
LzBrowser.loadURL('javascript: var wptr = window.open("' +
url +
'","test","resizable=1,width=1000,height=700,left=0,top=0,screenX=0,screenY=0,menubar,location,status,scrollbars,toolbar,address");
wptr.focus(); void(0);');
- </method>
- <method event="onmouseup">
+ </handler>
+ <handler name="onmouseup">
setAttribute('fgcolor', classroot.style.texthilitecolor)
- </method>
+ </handler>
</text>
</view>
@@ -89,9 +89,9 @@
<linktree text="combobox" isleaf="true"
file="lz.combobox.html" />
<linktree text="datepickercombobox"
isleaf="true">
<!-- there's no doc for datepickerday
-->
- <method event="oninit">
+ <handler name="oninit">
this.treeitem.text.setAttribute('clickable', false);
- </method>
+ </handler>
</linktree>
</linktree>
<linktree text="basedatacombobox" key="base"
file="lz.basedatacombobox.html">
@@ -128,9 +128,9 @@
isleaf="true" />
<linktree text="datepickerlistitem"
isleaf="true">
<!-- there's no doc for
datepickerday -->
- <method event="oninit">
+ <handler name="oninit">
this.treeitem.text.setAttribute('clickable', false);
- </method>
+ </handler>
</linktree>
</linktree>
</linktree>
@@ -178,17 +178,17 @@
<linktree text="basedatepickerday" key="base"
file="lz.basedatepickerday.html">
<linktree text="datepickerday" isleaf="true">
<!-- there's no doc for datepickerday -->
- <method event="oninit">
+ <handler name="oninit">
this.treeitem.text.setAttribute('clickable',
false);
- </method>
+ </handler>
</linktree>
</linktree>
<linktree text="basedatepickerweek" key="base"
file="lz.basedatepickerweek.html">
<linktree text="datepickerweek" isleaf="true">
<!-- there's no doc for datepickerweek -->
- <method event="oninit">
+ <handler name="oninit">
this.treeitem.text.setAttribute('clickable',
false);
- </method>
+ </handler>
</linktree>
</linktree>
</linktree> <!-- view -->
@@ -199,6 +199,6 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/trunk/docs/src/developers/lzunit.dbk
===================================================================
--- openlaszlo/trunk/docs/src/developers/lzunit.dbk 2008-03-22 14:03:51 UTC
(rev 8347)
+++ openlaszlo/trunk/docs/src/developers/lzunit.dbk 2008-03-22 14:18:53 UTC
(rev 8348)
@@ -252,7 +252,7 @@
<para>A while statement attached to (goButton.go==true) would loop infinitely,
or until a buttonclick set the "go" attribute to false, but how to test for
infinity? Maybe it's something the developer has to take on faith, but
JavaScript does have its limit: <literal>Number.MAX_VALUE</literal> is the
largest number JavaScript can represent. The while statement is <literal>while
(goButton.counter < Number.MAX_VALUE)</literal>.</para>
-<para>I am not sure if it is good style to declare "counter" as a button
attribute, but I think that must be better than initializing the counter
variable on the canvas (with the script <literal><method
event="oninit">var goButton.counter=1;</method></literal>). Before
adding the code for the while loop and the code for the button attribute,
there's a test to write: Does the goButton have a attribute "displayed" that
equals 1?</para>
+<para>I am not sure if it is good style to declare "counter" as a button
attribute, but I think that must be better than initializing the counter
variable on the canvas (with the script <literal><handler
name="oninit">var goButton.counter=1;</handler></literal>). Before
adding the code for the while loop and the code for the button attribute,
there's a test to write: Does the goButton have a attribute "displayed" that
equals 1?</para>
<example role="live-example">
<title>testGoButtonCounter</title>
Modified: openlaszlo/trunk/docs/src/developers/performance.dbk
===================================================================
--- openlaszlo/trunk/docs/src/developers/performance.dbk 2008-03-22
14:03:51 UTC (rev 8347)
+++ openlaszlo/trunk/docs/src/developers/performance.dbk 2008-03-22
14:18:53 UTC (rev 8348)
@@ -560,9 +560,9 @@
</method>
<!-- Update positioning whenever thingy's width changes -->
-<method event="onwidth" target="thingy">
+<handler name="onwidth" target="thingy">
this.update();
-</method>
+</handler>
....
</view>
</programlisting></example>
@@ -578,7 +578,7 @@
</view>
</programlisting>
<para>
-The second form is much more compact and readable, but the first form uses
zero constraints. The call <literal><method event="onwidth"
target="thingy"></literal> is nearly a constraint on
<literal>thingy.width</literal>, but: in the explicit-update form, one
<literal>thingy.onwidth</literal> event can trigger a single call to update
which, which will end up doing the repositioning that otherwise would require
at least a handful of constraints. Like constraints, method calls are
expensive. So, fewer constraints, fewer method calls, faster performance.</para>
+The second form is much more compact and readable, but the first form uses
zero constraints. The call <literal><handler name="onwidth"
target="thingy"></literal> is nearly a constraint on
<literal>thingy.width</literal>, but: in the explicit-update form, one
<literal>thingy.onwidth</literal> event can trigger a single call to update
which, which will end up doing the repositioning that otherwise would require
at least a handful of constraints. Like constraints, method calls are
expensive. So, fewer constraints, fewer method calls, faster performance.</para>
<para/></section><section><title>Tuning attribute assignments</title>
<para>
You may, in some limited circumstances, gain a performance boost by assigning
attribute values instead of setting them using a setter, (preferably, the
<indexterm><primary><literal>setAttribute()</literal></primary></indexterm><methodname>setAttribute()</methodname>
method). In general, using <literal>object.setAttribute('attr', value);
</literal> to set an attribute is the best way to set attributes, as explained
in <xref linkend="methods-events-attributes"/>. </para>
Modified: openlaszlo/trunk/docs/src/developers/programs/css-$13.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/css-$13.lzx 2008-03-22
14:03:51 UTC (rev 8347)
+++ openlaszlo/trunk/docs/src/developers/programs/css-$13.lzx 2008-03-22
14:18:53 UTC (rev 8348)
@@ -33,26 +33,26 @@
</class>
<button text="Dynamically create Mookie">
-<method event="onclick">
+<handler name="onclick">
canvas.mookieView=new mookie(canvas, {});
-</method>
+</handler>
</button>
<button text="Dynamically create Blaylock" y="50">
-<method event="onclick">
+<handler name="onclick">
canvas.blaylockWindow=new blaylock(canvas, {});
-</method>
+</handler>
</button>
<button text="Dynamically create Wilson" y="100">
-<method event="onclick">
+<handler name="onclick">
canvas.wilsonText=new wilson(canvas, {});
-</method>
+</handler>
</button>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/trunk/docs/src/developers/programs/input-devices-$9.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/input-devices-$9.lzx
2008-03-22 14:03:51 UTC (rev 8347)
+++ openlaszlo/trunk/docs/src/developers/programs/input-devices-$9.lzx
2008-03-22 14:18:53 UTC (rev 8348)
@@ -4,12 +4,12 @@
<text text="For my context menu to work, I need to run in SWF8"/>
-<method event="oninit">
+<handler name="oninit">
var cmenu = new LzContextMenu(); // create the menu
var item1 = cmenu.makeMenuItem('hello', new LzDelegate(this,
"handlerightclick")); // create the menu item, and set up an LzDelegate as a
callback
cmenu.addItem(item1); //add the item to the menu
this.setContextMenu(cmenu);
-</method>
+</handler>
<method name="handlerightclick" args="val">
Debug.write("hello world");
@@ -18,6 +18,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/trunk/docs/src/developers/programs/testdriven-10.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/testdriven-10.lzx
2008-03-22 14:03:51 UTC (rev 8347)
+++ openlaszlo/trunk/docs/src/developers/programs/testdriven-10.lzx
2008-03-22 14:18:53 UTC (rev 8348)
@@ -8,7 +8,7 @@
<attribute name="go" type="boolean" value="true"/>
<attribute name="counter" type="number" value="1" when="once"/>
-<method event="onclick">
+<handler name="onclick">
if (goButton.go==true) {
if (goButton.counter<Number.MAX_VALUE) {
foo = new LzDelegate(this, "count", LzIdle, "onidle");
@@ -22,7 +22,7 @@
this.setAttribute('text', 'Go');
this.setAttribute('go', true);
}
-</method>
+</handler>
<method name="count">
Debug.write(counter);
@@ -41,4 +41,7 @@
</TestSuite>
</canvas>
-<!-- Copyright 2001-2007 Laszlo Systems, Inc. -->
\ No newline at end of file
+<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
+* Use is subject to license terms. *
+* X_LZ_COPYRIGHT_END ****************************************************** -->
\ No newline at end of file
Modified: openlaszlo/trunk/docs/src/developers/programs/testdriven-3.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/testdriven-3.lzx
2008-03-22 14:03:51 UTC (rev 8347)
+++ openlaszlo/trunk/docs/src/developers/programs/testdriven-3.lzx
2008-03-22 14:18:53 UTC (rev 8348)
@@ -7,7 +7,7 @@
<attribute name="go" type="boolean" value="true"/>
-<method event="onclick">
+<handler name="onclick">
if (goButton.go==true) {
this.setAttribute('text', 'Stop');
this.setAttribute('go', false);
@@ -18,7 +18,7 @@
this.setAttribute('go', true);
Debug.write(this.getAttribute('go'), "should be 'true'");
}
-</method>
+</handler>
</button>
@@ -31,4 +31,7 @@
</TestSuite>
</canvas>
-<!-- Copyright 2001-2007 Laszlo Systems, Inc. -->
\ No newline at end of file
+<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
+* Use is subject to license terms. *
+* X_LZ_COPYRIGHT_END ****************************************************** -->
\ No newline at end of file
Modified: openlaszlo/trunk/docs/src/developers/programs/testdriven-4.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/testdriven-4.lzx
2008-03-22 14:03:51 UTC (rev 8347)
+++ openlaszlo/trunk/docs/src/developers/programs/testdriven-4.lzx
2008-03-22 14:18:53 UTC (rev 8348)
@@ -7,7 +7,7 @@
<attribute name="go" type="boolean" value="true"/>
-<method event="onclick">
+<handler name="onclick">
if (goButton.go==true) {
this.setAttribute('text', 'Stop');
this.setAttribute('go', false);
@@ -16,7 +16,7 @@
this.setAttribute('text', 'Go');
this.setAttribute('go', true);
}
-</method>
+</handler>
</button>
@@ -30,4 +30,7 @@
</TestSuite>
</canvas>
-<!-- Copyright 2001-2007 Laszlo Systems, Inc. -->
\ No newline at end of file
+<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
+* Use is subject to license terms. *
+* X_LZ_COPYRIGHT_END ****************************************************** -->
\ No newline at end of file
Modified: openlaszlo/trunk/docs/src/developers/programs/testdriven-5.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/testdriven-5.lzx
2008-03-22 14:03:51 UTC (rev 8347)
+++ openlaszlo/trunk/docs/src/developers/programs/testdriven-5.lzx
2008-03-22 14:18:53 UTC (rev 8348)
@@ -8,7 +8,7 @@
<attribute name="go" type="boolean" value="true"/>
<attribute name="counter" type="number" value="1" when="once"/>
-<method event="onclick">
+<handler name="onclick">
if (goButton.go==true) {
this.setAttribute('text', 'Stop');
this.setAttribute('go', false);
@@ -17,7 +17,7 @@
this.setAttribute('text', 'Go');
this.setAttribute('go', true);
}
-</method>
+</handler>
</button>
@@ -31,4 +31,7 @@
</TestSuite>
</canvas>
-<!-- Copyright 2001-2007 Laszlo Systems, Inc. -->
\ No newline at end of file
+<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
+* Use is subject to license terms. *
+* X_LZ_COPYRIGHT_END ****************************************************** -->
\ No newline at end of file
Modified: openlaszlo/trunk/docs/src/developers/programs/testdriven-6.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/testdriven-6.lzx
2008-03-22 14:03:51 UTC (rev 8347)
+++ openlaszlo/trunk/docs/src/developers/programs/testdriven-6.lzx
2008-03-22 14:18:53 UTC (rev 8348)
@@ -8,7 +8,7 @@
<attribute name="go" type="boolean" value="true"/>
<attribute name="counter" type="number" value="1" when="once"/>
-<method event="onclick">
+<handler name="onclick">
if (goButton.go==true) {
this.setAttribute('text', 'Stop');
this.setAttribute('go', false);
@@ -21,7 +21,7 @@
this.setAttribute('text', 'Go');
this.setAttribute('go', true);
}
-</method>
+</handler>
</button>
@@ -35,4 +35,7 @@
</TestSuite>
</canvas>
-<!-- Copyright 2001-2007 Laszlo Systems, Inc. -->
+<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
+* Use is subject to license terms. *
+* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/trunk/docs/src/developers/programs/testdriven-9.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/testdriven-9.lzx
2008-03-22 14:03:51 UTC (rev 8347)
+++ openlaszlo/trunk/docs/src/developers/programs/testdriven-9.lzx
2008-03-22 14:18:53 UTC (rev 8348)
@@ -8,7 +8,7 @@
<attribute name="go" type="boolean" value="true"/>
<attribute name="counter" type="number" value="1" when="once"/>
-<method event="onclick">
+<handler name="onclick">
if (goButton.go==true) {
if (goButton.counter<Number.MAX_VALUE) {
foo = new LzDelegate(this, "count", LzIdle, "onidle");
@@ -21,7 +21,7 @@
this.setAttribute('text', 'Go');
this.setAttribute('go', true);
}
-</method>
+</handler>
<method name="count">
Debug.write(counter);
@@ -40,4 +40,7 @@
</TestSuite>
</canvas>
-<!-- Copyright 2001-2007 Laszlo Systems, Inc. -->
\ No newline at end of file
+<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
+* Use is subject to license terms. *
+* X_LZ_COPYRIGHT_END ****************************************************** -->
\ No newline at end of file
Modified: openlaszlo/trunk/docs/src/developers/tutorials/calculator.dbk
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/calculator.dbk
2008-03-22 14:03:51 UTC (rev 8347)
+++ openlaszlo/trunk/docs/src/developers/tutorials/calculator.dbk
2008-03-22 14:18:53 UTC (rev 8348)
@@ -360,9 +360,9 @@
<text name="buttonText" font="obliqueText" fontsize="25"
fgcolor="#ffffff" x="13" valign="middle">
- <method event="ontext">
+ <handler name="ontext">
this.setAttribute('width', this.getTextWidth() + 5);
- </method>
+ </handler>
</text>
</class>
<emphasis role="em"></library></emphasis>
Modified:
openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$10.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$10.lzx
2008-03-22 14:03:51 UTC (rev 8347)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$10.lzx
2008-03-22 14:18:53 UTC (rev 8348)
@@ -27,9 +27,9 @@
<text name="buttonText" font="obliqueText" fontsize="25"
fgcolor="#ffffff" x="13" valign="middle" width="0">
- <method event="ontext">
+ <handler name="ontext">
this.setAttribute('width', this.getTextWidth() + 5);
- </method>
+ </handler>
</text>
</class>
@@ -245,6 +245,6 @@
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified:
openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$11.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$11.lzx
2008-03-22 14:03:51 UTC (rev 8347)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$11.lzx
2008-03-22 14:18:53 UTC (rev 8348)
@@ -41,9 +41,9 @@
<text name="buttonText" font="obliqueText" fontsize="25"
fgcolor="#ffffff" x="13" valign="middle" width="0">
- <method event="ontext">
+ <handler name="ontext">
this.setAttribute('width', this.getTextWidth() + 5);
- </method>
+ </handler>
</text>
</class>
@@ -251,6 +251,6 @@
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/trunk/docs/src/developers/video.dbk
===================================================================
--- openlaszlo/trunk/docs/src/developers/video.dbk 2008-03-22 14:03:51 UTC
(rev 8347)
+++ openlaszlo/trunk/docs/src/developers/video.dbk 2008-03-22 14:18:53 UTC
(rev 8348)
@@ -437,7 +437,7 @@
name="text"
value="${(s1.broadcasting == false) ? 'broadcast' : 'stop
broadcasting'}"
/>
- <method event="onclick"><![CDATA[
+ <handler name="onclick"><![CDATA[
if (cam.show == false) {
live.stream.setAttribute('url', parent.username.text);
live.stream.broadcast();
@@ -447,7 +447,7 @@
cam.setAttribute('show', false);
}
]]>
- </method>
+ </handler>
</button>
<checkbox onvalue="s1.setAttribute('muteaudio', value)">Mute
Audio</checkbox>
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins