From 9ed1d12cc0fd587b5ab2df9f4a31d6beabd8395a Mon Sep 17 00:00:00 2001 From: bergquist Date: Wed, 22 Feb 2017 10:36:30 +0100 Subject: [PATCH] style: use for loops over _.each in typescript --- public/app/core/services/keybindingSrv.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/app/core/services/keybindingSrv.ts b/public/app/core/services/keybindingSrv.ts index e591351b875..7abc3993e9d 100644 --- a/public/app/core/services/keybindingSrv.ts +++ b/public/app/core/services/keybindingSrv.ts @@ -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', () => {