From 0b4395bbb911f48d994c3e685f9ceb635aa929d1 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 5 Dec 2020 03:42:09 +0300 Subject: [PATCH] minor fix... Signed-off-by: Alex A. Naanou --- Viewer/features/core.js | 29 +++-------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/Viewer/features/core.js b/Viewer/features/core.js index 8d0ce4bc..7ca33d83 100755 --- a/Viewer/features/core.js +++ b/Viewer/features/core.js @@ -62,10 +62,11 @@ var features = require('lib/features') var toggler = require('lib/toggler') +// code/text normalization... +var doc = module.doc = actions.doc +var text = module.text = object.text -/*********************************************************************/ - /*********************************************************************/ // Root ImageGrid.viewer object constructor... @@ -252,30 +253,6 @@ module.Util = ImageGridFeatures.Feature({ //--------------------------------------------------------------------- // Introspection... -// Normalize doc strings... -// -// This will remove indent padding from all lines in a doc string. -// -// This is useful for documenting actions using ES6 template/multi-line -// strings and keep them sane in terms of indent... -// -// Example: -// someAction: ['Test/Some action title', -// core.doc`This is an example... -// mult-iline... -// ...doc string that will be normalized and look the same but` -// without the indent...`, -// function(){ ... }] -// -// NOTE: this will ignore the first line's indent so it can be started -// right at the string start. -// -// XXX might be a good idea to move this to a more generic spot like lib/util.js... -//var doc = module.doc = object.doc -var doc = module.doc = actions.doc -var text = module.text = object.text - - // Indicate that an action is not intended for direct use... // // NOTE: this will not do anything but mark the action.