From 63e41adb7ea79da42f61a1d57d4a1f838235b699 Mon Sep 17 00:00:00 2001 From: asher Date: Thu, 3 Sep 2020 10:43:55 +0300 Subject: [PATCH] fix object looping for inherited properties --- src/commands/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/index.js b/src/commands/index.js index 31ea80df6..2e2561816 100644 --- a/src/commands/index.js +++ b/src/commands/index.js @@ -100,10 +100,10 @@ export default () => { if (ppfx) c.stylePrefix = ppfx + c.stylePrefix; // Load commands passed via configuration - for (let k in c.defaults) { + Object.keys(c.defaults).forEach(k => { const obj = c.defaults[k]; if (obj.id) this.add(obj.id, obj); - } + }); defaultCommands['tlb-delete'] = { run(ed) {