summaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2019-12-24 09:23:14 -0500
committerMike Blumenkrantz <zmike@samsung.com>2019-12-24 09:23:14 -0500
commitf1144705ece4c94011078268262ff8c97bc302df (patch)
treed86827574a7ae02432a09d108df6d5d23042cee2 /src/examples
parent7d16c344c17a81e268d8d0bd945444b73487631b (diff)
examples: js: ensure we finish all statements with a semicolon
Summary: JS interpreters seems to be forgiving for these but the majority of the js code examples already use semicolons. Make it consistent and fix up the missing places. Reported-By: https://lgtm.com/projects/g/Enlightenment/efl Reviewers: felipealmeida, zmike Reviewed By: zmike Subscribers: zmike, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10882
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/elementary/bg_example_01.js2
-rw-r--r--src/examples/elementary/button_example_01.js4
-rw-r--r--src/examples/elementary/twitter_example_01.js2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/examples/elementary/bg_example_01.js b/src/examples/elementary/bg_example_01.js
index 410cb3a230..f8d98376ab 100644
--- a/src/examples/elementary/bg_example_01.js
+++ b/src/examples/elementary/bg_example_01.js
@@ -6,7 +6,7 @@ win.setText("Bg Plain");
6win.setAutohide(true); 6win.setAutohide(true);
7 7
8bg = new efl.Elm.Bg(win); 8bg = new efl.Elm.Bg(win);
9bg.setColor(255, 0,0,255) 9bg.setColor(255, 0,0,255);
10bg.setHintWeight(1.0, 1.0); 10bg.setHintWeight(1.0, 1.0);
11win.setContent(bg); 11win.setContent(bg);
12bg.setVisible(true); 12bg.setVisible(true);
diff --git a/src/examples/elementary/button_example_01.js b/src/examples/elementary/button_example_01.js
index f2f3a7d75a..2f540220d0 100644
--- a/src/examples/elementary/button_example_01.js
+++ b/src/examples/elementary/button_example_01.js
@@ -144,7 +144,7 @@ up.setHintWeight(1.0, 0.0);
144up.setHintAlign(-1.0, 0.0); 144up.setHintAlign(-1.0, 0.0);
145box.packEnd(up); 145box.packEnd(up);
146up.setVisible(true); 146up.setVisible(true);
147up.on('repeated', _btn_cursors_move) 147up.on('repeated', _btn_cursors_move);
148up.on('unpressed', _btn_cursors_release); 148up.on('unpressed', _btn_cursors_release);
149icon_up = new efl.Efl.Ui.Image(win); 149icon_up = new efl.Efl.Ui.Image(win);
150icon_up.setIcon("arrow_up"); 150icon_up.setIcon("arrow_up");
@@ -164,7 +164,7 @@ left.setHintWeight(0.0, 1.0);
164left.setHintAlign(0.0, -1.0); 164left.setHintAlign(0.0, -1.0);
165box_inferior.packEnd(left); 165box_inferior.packEnd(left);
166left.setVisible(true); 166left.setVisible(true);
167left.on('repeated', _btn_cursors_move) 167left.on('repeated', _btn_cursors_move);
168left.on('unpressed', _btn_cursors_release); 168left.on('unpressed', _btn_cursors_release);
169 169
170icon_left = new efl.Efl.Ui.Image(win); 170icon_left = new efl.Efl.Ui.Image(win);
diff --git a/src/examples/elementary/twitter_example_01.js b/src/examples/elementary/twitter_example_01.js
index 04edbdd3ae..ba00b05900 100644
--- a/src/examples/elementary/twitter_example_01.js
+++ b/src/examples/elementary/twitter_example_01.js
@@ -10,7 +10,7 @@ fs = require('fs');
10request = require('request'); 10request = require('request');
11Twitter = require('twitter'); 11Twitter = require('twitter');
12 12
13user_acount = 'EnlightenmentKo' 13user_acount = 'EnlightenmentKo';
14 14
15var twit = new Twitter({ 15var twit = new Twitter({
16 consumer_key: '', // replace with consumer_key 16 consumer_key: '', // replace with consumer_key