Semicolon at the end of the Statement 54/94854/1
authoranushadasari <danush10@in.ibm.com>
Tue, 3 Sep 2019 16:06:40 +0000 (21:36 +0530)
committeranushadasari <danush10@in.ibm.com>
Tue, 3 Sep 2019 16:07:00 +0000 (21:37 +0530)
In JavaScript, the semicolon (;) is optional as a statement separator, but omitting semicolons can be confusing, and lead to unexpected results because a semicolon is implicitly inserted at the end of each line.

Issue-ID: VID-607
Change-Id: I45f7576fe1410b4ab46949547584a597ed98c0b3
Signed-off-by: anushadasari <danush10@in.ibm.com>
vid-app-common/src/main/webapp/app/vid/scripts/directives/parameterBlockDirective.js

index 5b8cb74..bf4941f 100755 (executable)
@@ -397,7 +397,7 @@ var parameterBlockDirective = function($log, PARAMETER, UtilityService, $compile
                 element.find("input, select").bind("change.namespace2", function() {\r
                     callback(this, scope);\r
                 });\r
-            }\r
+            };\r
 \r
             control.getList = function(expectedId) {\r
                 var parameterList = new Array();\r
@@ -411,7 +411,7 @@ var parameterBlockDirective = function($log, PARAMETER, UtilityService, $compile
                     parameterList.push({id: key, value: value});\r
                 });\r
                 return parameterList;\r
-            }\r
+            };\r
 \r
             control.getRequiredFields = function() {\r
                 var requiredFields = "";\r
@@ -433,10 +433,10 @@ var parameterBlockDirective = function($log, PARAMETER, UtilityService, $compile
                 } else {\r
                     return requiredFields + " and " + count + " other fields";\r
                 }\r
-            }\r
+            };\r
         }\r
     }\r
-}\r
+};\r
 \r
 appDS2.directive('parameterBlock', [ "$log", "PARAMETER", "UtilityService", "$compile",\r
     parameterBlockDirective ]);\r
@@ -469,7 +469,7 @@ appDS2.directive('onlyIntegers', function () {
                 }\r
             });\r
         }\r
-    }\r
+    };\r
 });\r
 \r
 appDS2.directive('onlyFloat', function () {\r
@@ -487,5 +487,5 @@ appDS2.directive('onlyFloat', function () {
                 }\r
             });\r
         }\r
-    }\r
+    };\r
 });\r