From e0540a5031d6c778991edfd0288d938f52e97c7b Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Mon, 3 Apr 2017 12:11:30 +0700 Subject: [PATCH] Better comments --- client/coral-framework/helpers/plugins.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/coral-framework/helpers/plugins.js b/client/coral-framework/helpers/plugins.js index 6d54aa3eb..32b5e34d0 100644 --- a/client/coral-framework/helpers/plugins.js +++ b/client/coral-framework/helpers/plugins.js @@ -18,7 +18,7 @@ const getPluginName = (key) => key.match(/\.\/(.*)\/client\/.*$/)[1]; const isActivePlugin = (plugin) => clientPlugins.indexOf(plugin) > -1; /** - * createLoader returns a callback that loads enabled modules of the context and + * Returns a callback that loads enabled modules of the context and * returns an Array with {plugin, module} entries. Consecutive calls * will return a memoized result. */ @@ -39,14 +39,14 @@ function createLoader(context) { const loaders = mapValues(contextMap, createLoader); /** - * getConfig returns the config object of given plugin. + * Returns the config object of given plugin. */ function getConfig(plugin) { return loaders.configs().filter(o => o.plugin === plugin)[0].module; } /** - * getSlotElements returns React Elements for given slot. + * Returns React Elements for given slot. */ export function getSlotElements(slot, props = {}) { return loaders.components()