In the course of developing Alt Framework, several modifications were made to Rhino to add some powerful functionality. These features are not required to run the Alt Framework, but are required for several sub-features.
The source changes are included in a patch file (
This feature is only available in interpreted mode and can be used by the Alt Framework documentation system to generate documentation for the core Alt Framework classes as well as your own code.
toSource Compression Patch
Inspired by Dojo's compressor, the toSource compression patch extends the definition of the Function.toSource method to take an additional flags argument.
COMPRESS_FLAG tells toSource to generate a method where all the local variables are obfuscated, all comments are removed, and unnecessary white space is removed.
COMPRESS_NEWLINES_FLAG goes one step further to remove all new lines from the resulting code. (You may want to keep new lines if you want better client-side debugging.)
|page last updated: Thursday, February 14, 2008|