From 16b211b09ee1efa0a8b80067b5871f464d48c61c Mon Sep 17 00:00:00 2001 From: anushadasari Date: Tue, 3 Sep 2019 21:36:40 +0530 Subject: Semicolon at the end of the Statement 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 --- .../app/vid/scripts/directives/parameterBlockDirective.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'vid-app-common/src/main/webapp/app') diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/directives/parameterBlockDirective.js b/vid-app-common/src/main/webapp/app/vid/scripts/directives/parameterBlockDirective.js index 5b8cb7445..bf4941f28 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/directives/parameterBlockDirective.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/directives/parameterBlockDirective.js @@ -397,7 +397,7 @@ var parameterBlockDirective = function($log, PARAMETER, UtilityService, $compile element.find("input, select").bind("change.namespace2", function() { callback(this, scope); }); - } + }; control.getList = function(expectedId) { var parameterList = new Array(); @@ -411,7 +411,7 @@ var parameterBlockDirective = function($log, PARAMETER, UtilityService, $compile parameterList.push({id: key, value: value}); }); return parameterList; - } + }; control.getRequiredFields = function() { var requiredFields = ""; @@ -433,10 +433,10 @@ var parameterBlockDirective = function($log, PARAMETER, UtilityService, $compile } else { return requiredFields + " and " + count + " other fields"; } - } + }; } } -} +}; appDS2.directive('parameterBlock', [ "$log", "PARAMETER", "UtilityService", "$compile", parameterBlockDirective ]); @@ -469,7 +469,7 @@ appDS2.directive('onlyIntegers', function () { } }); } - } + }; }); appDS2.directive('onlyFloat', function () { @@ -487,5 +487,5 @@ appDS2.directive('onlyFloat', function () { } }); } - } + }; }); -- cgit 1.2.3-korg