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.