Fixed issues reported by SonarQube with tag 'bad-practice'.

This commit is contained in:
Aditya Toshniwal
2020-06-22 12:18:59 +05:30
committed by Akshay Joshi
parent 9e40995ab0
commit 6620f9263d
4 changed files with 50 additions and 60 deletions

View File

@@ -581,15 +581,12 @@ define([
// triggered when a dialog option gets update.
onupdate: function(option, oldValue, newValue) {
switch (option) {
case 'resizable':
if(option === 'resizable') {
if (newValue) {
this.elements.content.removeAttribute('style');
} else {
this.elements.content.style.minHeight = 'inherit';
}
break;
}
},