From 5ca6d0191160858ece155c31333fbfc9f957212e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20H=C3=A5kansson?= Date: Sun, 11 May 2014 18:23:04 +0200 Subject: [PATCH] renamed variable to make code more understandable --- src/context-menu-manager.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/context-menu-manager.coffee b/src/context-menu-manager.coffee index 88d9bebe3..51a13ca2d 100644 --- a/src/context-menu-manager.coffee +++ b/src/context-menu-manager.coffee @@ -33,11 +33,11 @@ class ContextMenuManager # Returns nothing. add: (name, object, {devMode}={}) -> for selector, items of object - for label, command of items - if (typeof command == 'object') - @addBySelector(selector, command, {devMode}) + for label, commandOrSubmenu of items + if (typeof commandOrSubmenu == 'object') + @addBySelector(selector, commandOrSubmenu, {devMode}) else - @addBySelector(selector, {label, command}, {devMode}) + @addBySelector(selector, {label, commandOrSubmenu}, {devMode}) # Registers a command to be displayed when the relevant item is right # clicked.