fix lint warnings

This commit is contained in:
Roman Hotsiy 2016-12-25 17:16:33 +02:00
parent 6a7f0238d3
commit cd066904d7
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -142,7 +142,7 @@ export class MenuService {
let selector = '';
while(currentItem) {
if (currentItem.id) {
selector = `[section="${currentItem.id}"] ` + selector
selector = `[section="${currentItem.id}"] ` + selector;
}
currentItem = currentItem.parent;
}
@ -216,8 +216,8 @@ export class MenuService {
if (idx < 0) this.tryScrollToId(searchId);
} else if (namespace === 'operation') {
idx = this.flatItems.findIndex(item => {
return item.metadata && item.metadata.operationId === ptr
})
return item.metadata && item.metadata.operationId === ptr;
});
}
this.activate(idx, true);
return idx >= 0;
@ -235,7 +235,7 @@ export class MenuService {
let item = {
name: header,
id: id
}
};
this.items.push(item);
}
}
@ -255,7 +255,7 @@ export class MenuService {
operationId: method.operationId
},
parent: parent
}
};
res.push(subItem);
}
return res;
@ -344,7 +344,7 @@ export class MenuService {
if (!item.isGroup) curDepth--;
}
}
}
};
recursive(menu);
return res;
}