[gjs: 6/7] Remove unnecessary semicolons



commit 340c01cc70720d4b44e7149581512875acf83fe7
Author: Philip Chimento <philip chimento gmail com>
Date:   Sat Mar 24 12:56:26 2018 -0700

    Remove unnecessary semicolons
    
    This intends to fix a few linter errors without affecting the ability to
    'git blame' large sections of code.

 examples/gtk.js                                  |  2 +-
 installed-tests/js/modules/subA/subB/__init__.js |  2 +-
 modules/overrides/GObject.js                     |  2 +-
 modules/tweener/tweenList.js                     |  2 +-
 modules/tweener/tweener.js                       | 30 ++++++++++++------------
 5 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/examples/gtk.js b/examples/gtk.js
index 02aaa42..ec3a29d 100644
--- a/examples/gtk.js
+++ b/examples/gtk.js
@@ -31,7 +31,7 @@ function onDeleteEvent(widget, event) {
     // Returning true gives you a chance to pop up 'are you sure you want to
     // quit?' type dialogs.
     return false;
-};
+}
 
 // When the window is given the "delete_event" signal (this is given by the
 // window manager, usually by the "close" option, or on the titlebar), we ask
diff --git a/installed-tests/js/modules/subA/subB/__init__.js 
b/installed-tests/js/modules/subA/subB/__init__.js
index a0588e4..ce3c225 100644
--- a/installed-tests/js/modules/subA/subB/__init__.js
+++ b/installed-tests/js/modules/subA/subB/__init__.js
@@ -16,4 +16,4 @@ ImporterClass.prototype = {
     testMethod : function() {
         return this._a;
     }
-}
+};
diff --git a/modules/overrides/GObject.js b/modules/overrides/GObject.js
index 0050afe..741a9f3 100644
--- a/modules/overrides/GObject.js
+++ b/modules/overrides/GObject.js
@@ -385,7 +385,7 @@ function _init() {
             if (iface.$gtype)
                 return GObject.type_is_a(newClass.$gtype, iface.$gtype);
             return false;
-        }
+        };
 
         return newClass;
     };
diff --git a/modules/tweener/tweenList.js b/modules/tweener/tweenList.js
index 4efde21..1f529fc 100644
--- a/modules/tweener/tweenList.js
+++ b/modules/tweener/tweenList.js
@@ -106,4 +106,4 @@ function makePropertiesChain(obj) {
      * I don't think that applies to JavaScript...
      */
     return obj;
-};
+}
diff --git a/modules/tweener/tweener.js b/modules/tweener/tweener.js
index 31aaecb..ad4e70e 100644
--- a/modules/tweener/tweener.js
+++ b/modules/tweener/tweener.js
@@ -195,7 +195,7 @@ function _resumeTweenByIndex(i) {
     tweening.isPaused = false;
 
     return true;
-};
+}
 
 /* FIXME: any way to get the function name from the fn itself? */
 function _callOnFunction(fn, fnname, scope, fallbackScope, params)
@@ -364,7 +364,7 @@ function _onEnterFrame() {
         _stopEngine();
 
     return true;
-};
+}
 
 const restrictedWords = {
     time: true,
@@ -595,15 +595,15 @@ function _addTweenOrCaller(target, tweeningParameters, isCaller) {
     }
 
     return true;
-};
+}
 
 function addTween(target, tweeningParameters) {
     return _addTweenOrCaller(target, tweeningParameters, false);
-};
+}
 
 function addCaller(target, tweeningParameters) {
     return _addTweenOrCaller(target, tweeningParameters, true);
-};
+}
 
 function _getNumberOfProperties(object) {
     var totalProperties = 0;
@@ -649,7 +649,7 @@ function removeTweensByTime(scope, properties, timeStart, timeComplete) {
     }
 
     return removed;
-};
+}
 
 function _pauseTweenByIndex(i) {
     var tweening = _tweenList[i];
@@ -661,7 +661,7 @@ function _pauseTweenByIndex(i) {
     tweening.isPaused = true;
 
     return true;
-};
+}
 
 function _splitTweens(tween, properties) {
     var originalTween = _tweenList[tween];
@@ -737,7 +737,7 @@ function _affectTweens(affectFunction, scope, properties) {
     }
 
     return affected;
-};
+}
 
 function _isInArray(string, array) {
     var l = array.length;
@@ -785,15 +785,15 @@ function _affectTweensWithFunction(func, args) {
 
 function resumeTweens() {
     return _affectTweensWithFunction(_resumeTweenByIndex, arguments);
-};
+}
 
 function pauseTweens() {
     return _affectTweensWithFunction(_pauseTweenByIndex, arguments);
-};
+}
 
 function removeTweens() {
     return _affectTweensWithFunction(_removeTweenByIndex, arguments);
-};
+}
 
 function _mapOverTweens(func) {
     var rv = false;
@@ -811,15 +811,15 @@ function _mapOverTweens(func) {
 
 function pauseAllTweens() {
     return _mapOverTweens(_pauseTweenByIndex);
-};
+}
 
 function resumeAllTweens() {
     return _mapOverTweens(_resumeTweenByIndex);
-};
+}
 
 function removeAllTweens() {
     return _mapOverTweens(_removeTweenByIndex);
-};
+}
 
 function getTweenCount(scope) {
     if (!_tweenList)
@@ -833,7 +833,7 @@ function getTweenCount(scope) {
     }
 
     return c;
-};
+}
 
 function registerSpecialProperty(name, getFunction, setFunction,
                                  parameters, preProcessFunction) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]