fix (unneccessary) brackets and IDE warnings

This commit is contained in:
Ralf Becker 2019-03-04 12:50:11 +01:00
parent cae866db13
commit a0e92a6237

View File

@ -859,9 +859,9 @@ function egwActionManager(_parent, _id)
*/
function egwActionImplementation()
{
this.doRegisterAction = function() {throw "Abstract function call: registerAction"};
this.doUnregisterAction = function() {throw "Abstract function call: unregisterAction"};
this.doExecuteImplementation = function() {throw "Abstract function call: executeImplementation"};
this.doRegisterAction = function() {throw "Abstract function call: registerAction";};
this.doUnregisterAction = function() {throw "Abstract function call: unregisterAction";};
this.doExecuteImplementation = function() {throw "Abstract function call: executeImplementation";};
this.type = "";
}
@ -946,7 +946,7 @@ egwActionLink.prototype.set_actionId = function(_value)
this.actionObj = this.manager.getActionById(_value);
if (!this.actionObj)
throw "Action object with id '"+_value+"' does not exist!"
throw "Action object with id '"+_value+"' does not exist!";
};
/** egwActionObject Object **/
@ -1098,7 +1098,7 @@ egwActionObject.prototype.addObject = function(_id, _interface, _flags)
*
* @param {number} _index Position where the object will be inserted, "false" will add it
* to the end of the list.
* @param {string}/object _id Id of the object which will be created or the object
* @param {string|object} _id Id of the object which will be created or the object
* that will be added.
* @param {object} _iface if _id was an string, _iface defines the interface which
* will be connected to the newly generated object.
@ -1136,7 +1136,7 @@ egwActionObject.prototype.insertObject = function(_index, _id, _iface, _flags)
}
else
{
throw "Error while adding new element to the ActionObjects!"
throw "Error while adding new element to the ActionObjects!";
}
return obj;