examples: js: ensure we finish all statements with a semicolon
authorStefan Schmidt <s.schmidt@samsung.com>
Tue, 24 Dec 2019 14:23:14 +0000 (09:23 -0500)
committerJongmin Lee <jm105.lee@samsung.com>
Wed, 25 Dec 2019 21:12:14 +0000 (06:12 +0900)
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

src/examples/elementary/bg_example_01.js
src/examples/elementary/button_example_01.js
src/examples/elementary/twitter_example_01.js

index 410cb3a..f8d9837 100644 (file)
@@ -6,7 +6,7 @@ win.setText("Bg Plain");
 win.setAutohide(true);
 
 bg = new efl.Elm.Bg(win);
-bg.setColor(255, 0,0,255)
+bg.setColor(255, 0,0,255);
 bg.setHintWeight(1.0, 1.0);
 win.setContent(bg);
 bg.setVisible(true);
index f2f3a7d..2f54022 100644 (file)
@@ -144,7 +144,7 @@ up.setHintWeight(1.0, 0.0);
 up.setHintAlign(-1.0, 0.0);
 box.packEnd(up);
 up.setVisible(true);
-up.on('repeated', _btn_cursors_move)
+up.on('repeated', _btn_cursors_move);
 up.on('unpressed', _btn_cursors_release);
 icon_up = new efl.Efl.Ui.Image(win);
 icon_up.setIcon("arrow_up");
@@ -164,7 +164,7 @@ left.setHintWeight(0.0, 1.0);
 left.setHintAlign(0.0, -1.0);
 box_inferior.packEnd(left);
 left.setVisible(true);
-left.on('repeated', _btn_cursors_move)
+left.on('repeated', _btn_cursors_move);
 left.on('unpressed', _btn_cursors_release);
 
 icon_left = new efl.Efl.Ui.Image(win);
index 04edbdd..ba00b05 100644 (file)
@@ -10,7 +10,7 @@ fs = require('fs');
 request = require('request');
 Twitter = require('twitter');
 
-user_acount = 'EnlightenmentKo'
+user_acount = 'EnlightenmentKo';
 
 var twit = new Twitter({
   consumer_key: '', // replace with consumer_key