You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by tv...@apache.org on 2010/03/23 14:11:34 UTC

svn commit: r926558 - /pivot/trunk/tutorials/www/scripting.xml

Author: tvolkert
Date: Tue Mar 23 13:11:34 2010
New Revision: 926558

URL: http://svn.apache.org/viewvc?rev=926558&view=rev
Log:
Sync tutorial HTML with recent changes to WTKX

Modified:
    pivot/trunk/tutorials/www/scripting.xml

Modified: pivot/trunk/tutorials/www/scripting.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/www/scripting.xml?rev=926558&r1=926557&r2=926558&view=diff
==============================================================================
--- pivot/trunk/tutorials/www/scripting.xml (original)
+++ pivot/trunk/tutorials/www/scripting.xml Tue Mar 23 13:11:34 2010
@@ -158,7 +158,7 @@ limitations under the License.
 
         <source type="xml" location="org/apache/pivot/tutorials/scripting/Scripting.java">
             <![CDATA[
-            <Window wtkx:id="window" title="Scripting Demo" maximized="true"
+            <Window title="Scripting Demo" maximized="true"
                 WindowStateListener.windowOpened="java.lang.System.out.println('Window opened: ' + x)"
                 WindowStateListener.windowClosed="java.lang.System.out.println('Window closed: ' + y)"
                 xmlns:wtkx="http://pivot.apache.org/wtkx"
@@ -174,8 +174,8 @@ limitations under the License.
                 var x = 10;
                 var y = 20;
 
-                function buttonClicked() {
-                    Prompt.prompt("y = " + y, window);
+                function buttonClicked(button) {
+                    Prompt.prompt("y = " + y, button.window);
                 }
                 </wtkx:script>
 
@@ -197,7 +197,7 @@ limitations under the License.
                                 </PushButton>
 
                                 <PushButton buttonData="No, Click Me!"
-                                    ButtonPressListener.buttonPressed="buttonClicked()"/>
+                                    ButtonPressListener.buttonPressed="buttonClicked(arguments[0])"/>
 
                                 <Border styles="{color:10}">
                                     <content>