style: use for loops over _.each in typescript

pull/7640/head
bergquist 8 years ago
parent c5a76fba87
commit 9ed1d12cc0
  1. 8
      public/app/core/services/keybindingSrv.ts

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

Loading…
Cancel
Save