use super.<name>(<arguments>) instead of super.<name>.apply(this, arguments)

This commit is contained in:
Ralf Becker
2020-02-11 17:40:17 +01:00
parent 13cc7f09cd
commit 5f804dd661
7 changed files with 50 additions and 45 deletions

View File

@ -364,7 +364,7 @@ export abstract class EgwApp
* @param {string} template template name to check, instead of trying all templates of current app
* @return {boolean} false - Returns false to stop event propagation
*/
setState(state, template? : string)
setState(state, template? : string) : string|false|void
{
// State should be an object, not a string, but we'll parse
if(typeof state == "string")
@ -445,7 +445,7 @@ export abstract class EgwApp
*
* @return {object} Application specific map representing the current state
*/
getState()
getState() : {[propName:string]: any}
{
var state = {};