From 4c962943b2442d82eeb6c0f620cb2cf6127a9377 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 4 Jun 2021 14:54:53 +0530 Subject: [PATCH] Modify setters in MenuOption to support chaining Signed-off-by: RMidhunSuresh --- src/platform/web/ui/general/Menu.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platform/web/ui/general/Menu.js b/src/platform/web/ui/general/Menu.js index 8a57a7fc..baf7b1a9 100644 --- a/src/platform/web/ui/general/Menu.js +++ b/src/platform/web/ui/general/Menu.js @@ -69,10 +69,12 @@ class MenuOption { setCallback(callback) { this.callback = callback; + return this; } setLink(link) { this.link = link; + return this; } setIcon(className) {