WWW-www.enlightenment.org pushed a commit to branch master. http://git.enlightenment.org/website/www-content.git/commit/?id=265c6b61a6a0bfb4606a096c08942633858a20eb
commit 265c6b61a6a0bfb4606a096c08942633858a20eb Author: Larry de Oliveira Lira Junior <[email protected]> Date: Fri Dec 11 08:07:59 2015 -0800 Wiki page javascript_tutorial changed with summary [] by Larry de Oliveira Lira Junior --- pages/tutorial/javascript_tutorial.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/tutorial/javascript_tutorial.txt b/pages/tutorial/javascript_tutorial.txt index 8d0ab67..48703f3 100644 --- a/pages/tutorial/javascript_tutorial.txt +++ b/pages/tutorial/javascript_tutorial.txt @@ -47,13 +47,13 @@ After everything is compiled and installed, it is time to use the modules in nod The default node.js files installed by efl/elm stay in prefix /lib path (if you don't define a prefix path is ''/usr/local/lib'') -Node.js need know where find efl/elm node modules, to that export NODE_PATH with the file path to modules. +Node.js needs to know where find efl/elm node modules, to that export NODE_PATH with the file path to modules. <code bash> export NODE_PATH=/usr/local/lib #if necessary replace with your prefix path </code> -Now you are ready to use the modules in node.js, use ''require'' to import modules +Now you are ready to use the modules in node.js, use ''require'' to import the modules <code javascript> ~$ node @@ -72,7 +72,7 @@ Import Elementary module elm = require('elm'); </code> -Create a new Window with //auto hide// (the window is hide automatic when close is pressed): +Create a new Window with //auto hide// (the window is automatically hidden when close is pressed): <code javascript> win = new elm.Elm.WinStandard(null); win.setTitle("Hello, World!"); @@ -98,7 +98,7 @@ The method ''on'' is used to register callback on events, in this case we need c btn.on('clicked', function () { console.log('clicked'); } ); </code> -To finish is needy show all elements, for that use ''setVisible(true)'' +To finish, is necessary show all elements, for that use ''setVisible(true)'' <code javascript> btn.setVisible(true); win.setSize(240, 60); @@ -137,7 +137,7 @@ user_acount = 'EnlightenmentKo' icon_array = new Array(); </code> -Create a new Window (has previous example): +Create a new Window (it has previous example): <code javascript> win = new elm.Elm.WinStandard(null); win.setTitle("Twitter App"); --
