OSDN Git Service

Version 0.6.57, fixed NS of X.UI & X.Class for __proto__.
[pettanr/clientJs.git] / 0.6.x / js / main.js
index ae31769..514de83 100644 (file)
@@ -1,19 +1,19 @@
-root = PageRoot(\r
-       Box({\r
+root = X.UI.PageRoot(\r
+       X.UI.Box({\r
                width   : '10%',\r
                height  : '10%',\r
                left    : 5,\r
                top     : 1,\r
                bgColor : 0x0000ff\r
        }),\r
-       Box({\r
+       X.UI.Box({\r
                width       : 5,\r
                height      : 5,\r
                left        : '10%',\r
                bottom      : '70%',\r
                bgColor     : 0xff0000\r
        }),\r
-       VBox(\r
+       X.UI.VBox(\r
                {\r
                        width       : '50%',\r
                        left        : '49%',\r
@@ -26,15 +26,15 @@ root = PageRoot(
                        padding     : [ 4, 1 ],\r
                        sizing      : 'border'\r
                },\r
-               Box({\r
+               X.UI.Box({\r
                        width       : '50%',\r
                        height      : 2,\r
                        left        : '25%',\r
                        bgColor     : 0x999999\r
                }),\r
-               Text( 'Hello, world!', { width : '100%' } ),\r
-               Text( '----------------------------', { width : '100%' } ),\r
-               text = Text( 'PettanR-team. rrrrrrrrrr', { width : '100%' } )\r
+               X.UI.Text( 'Hello, world!', { width : '100%' } ),\r
+               X.UI.Text( '----------------------------', { width : '100%' } ),\r
+               text = X.UI.Text( 'PettanR-team. rrrrrrrrrr', { width : '100%' } )\r
                        .listen( X.UI.Event.TAP, _onClick )\r
        )\r
 );\r