js/mixins/data/data-layer.js
Function _r
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_r: function (obj) {
var namespace, that = this, key, arr = [];
if (obj) {
for (key in obj) {
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (obj[key].indexOf('namespaces') !== -1 && obj[key].split(':').length > 1) {
obj[key].split(',').forEach(function (val) {
namespace = that._getNamespace(val.split(':')[1], val.split(':')[2]) || [];
if (namespace) {
arr = arr.concat(namespace);
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (!obj[key].hasOwnProperty('toolbarSticky')) {
obj[key].toolbarSticky = true;
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (!obj[key].hasOwnProperty('helper')) {
obj[key].helper = '';
}
- Create a ticketCreate a ticket