style: use for loops over _.each in typescript

This commit is contained in:
bergquist 2017-02-22 10:36:30 +01:00
parent c5a76fba87
commit 9ed1d12cc0

View File

@ -189,16 +189,16 @@ export class KeybindingSrv {
// collapse all rows
this.bind('d C', () => {
_.each(dashboard.rows, function(row) {
for (let row of dashboard.rows) {
row.collapse = true;
});
}
});
// expand all rows
this.bind('d E', () => {
_.each(dashboard.rows, function(row) {
for (let row of dashboard.rows) {
row.collapse = false;
});
}
});
this.bind('d r', () => {