Improved isString method

This commit is contained in:
JuanjiJG 2018-09-20 11:31:04 +02:00
parent 7c0b9bec14
commit 3a517ba728

View File

@ -33,7 +33,7 @@ class NewConfigurationController {
this.$scope.getXML = name => this.getXML(name);
this.$scope.getJSON = name => this.getJSON(name);
this.$scope.isString = item => this.isString(item);
this.$scope.isString = item => typeof item === 'string';
this.$scope.switchConfigTab = (configurationTab, sections) => this.switchConfigTab(configurationTab, sections);
this.$scope.switchConfigurationTab = configurationTab => this.switchConfigurationTab(configurationTab);
this.$scope.switchConfigurationSubTab = configurationSubTab => this.switchConfigurationSubTab(configurationSubTab);
@ -46,10 +46,6 @@ class NewConfigurationController {
this.load();
}
isString(item) {
return angular.isString(item);
}
/**
* Switchs between configuration tabs
* @param {string} configurationTab The configuration tab to open