NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item11383 for general documentation changes for release 1.1.5. Use
Item9693 for docu changes for release 2.0.
Item2489: WysiwygPlugin Constants should use export instead of aliasing it to some WC module
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Enhancement |
New |
Extension |
WysiwygPlugin |
|
FoswikiTrunk:WysiwygPlugin/lib/Foswiki/Plugins/WysiwygPlugin/Constants.pm has a hack at the end to alias its own module to WC:: so other plugins can use $WC::CONSTANT or WC::function, instead of the fully qualified name Foswiki::Plugins::WysiwygPlugin::Constants::CONSTANT.
Even though this works fine, it's hackish, and would be much more cleaner using the EXPORT mechanism.
Rem: one would have to benchmark it to ensure EXPORT will not slow things down, or at least not too much
--
OlivierRaginel - 10 Dec 2009