From 265c6b61a6a0bfb4606a096c08942633858a20eb Mon Sep 17 00:00:00 2001 From: Larry de Oliveira Lira Junior Date: Fri, 11 Dec 2015 08:07:59 -0800 Subject: [PATCH] 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 8d0ab6701..48703f303 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. export NODE_PATH=/usr/local/lib #if necessary replace with your prefix path -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 ~$ node @@ -72,7 +72,7 @@ Import Elementary module elm = require('elm'); -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): 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'); } ); -To finish is needy show all elements, for that use ''setVisible(true)'' +To finish, is necessary show all elements, for that use ''setVisible(true)'' btn.setVisible(true); win.setSize(240, 60); @@ -137,7 +137,7 @@ user_acount = 'EnlightenmentKo' icon_array = new Array(); -Create a new Window (has previous example): +Create a new Window (it has previous example): win = new elm.Elm.WinStandard(null); win.setTitle("Twitter App");