no-lonely-if
This commit is contained in:
@@ -47,7 +47,7 @@
|
|||||||
"import/no-extraneous-dependencies": 0,
|
"import/no-extraneous-dependencies": 0,
|
||||||
"camelcase": 0,
|
"camelcase": 0,
|
||||||
"eqeqeq": 0,
|
"eqeqeq": 0,
|
||||||
"no-lonely-if": 0,
|
// "no-lonely-if": 0,
|
||||||
"space-unary-ops": 0,
|
"space-unary-ops": 0,
|
||||||
"no-extra-bind": 0,
|
"no-extra-bind": 0,
|
||||||
"class-methods-use-this": 0,
|
"class-methods-use-this": 0,
|
||||||
|
@@ -60,12 +60,10 @@ define([
|
|||||||
templateResult: function (item) {
|
templateResult: function (item) {
|
||||||
if (item.element && item.element.selected) {
|
if (item.element && item.element.selected) {
|
||||||
return null;
|
return null;
|
||||||
|
} else if (item.title) {
|
||||||
|
return item.title;
|
||||||
} else {
|
} else {
|
||||||
if (item.title) {
|
return item.text;
|
||||||
return item.title;
|
|
||||||
} else {
|
|
||||||
return item.text;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user