Fix js code style

This commit is contained in:
Fedor A. Fetisov 2021-01-29 19:55:51 +03:00
parent aa94e21602
commit 7a16536341
5 changed files with 11 additions and 11 deletions

View File

@ -91,7 +91,7 @@ MibewAPI.prototype.checkFunction = function(functionObject, filterReservedFuncti
// Work with own properties only.
continue;
}
for (var i = 0; i < mandatoryArgumentsList.length; i++) {
for (i = 0; i < mandatoryArgumentsList.length; i++) {
if (argName == mandatoryArgumentsList[i]) {
mandatoryArgumentsCount++;
continue argumentsLoop;
@ -358,7 +358,7 @@ MibewAPIInteraction.prototype.getMandatoryArguments = function(functionName) {
}
// Add mandatory arguments for given function
if (typeof allMandatoryArguments[functionName] == 'object') {
for (var arg in allMandatoryArguments[functionName]) {
for (arg in allMandatoryArguments[functionName]) {
if (! allMandatoryArguments[functionName].hasOwnProperty(arg)) {
continue;
}
@ -389,7 +389,7 @@ MibewAPIInteraction.prototype.getMandatoryArgumentsDefaults = function(functionN
}
// Add mandatory arguments for given function
if (typeof allMandatoryArguments[functionName] == 'object') {
for (var arg in allMandatoryArguments[functionName]) {
for (arg in allMandatoryArguments[functionName]) {
if (! allMandatoryArguments[functionName].hasOwnProperty(arg)) {
continue;
}

View File

@ -21,7 +21,7 @@
$('#permissionsForm').submit(function(e){
if (!$('#permissionsadmin').is(":checked")) {
e.preventDefault();
message = Mibew.Localization.trans(
var message = Mibew.Localization.trans(
'This action is irreversible, proceed anyway?'
);
Mibew.Utils.confirm(message, function(value) {

View File

@ -148,7 +148,7 @@
}
// Add styles names to DOM element
for(var i = 0, l = childView.lastStyles.length; i < l; i++) {
for(i = 0, l = childView.lastStyles.length; i < l; i++) {
childView.$el.addClass(childView.lastStyles[i]);
}
}