Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0.9m9
-
None
-
None
Description
Note: patch file following
- smaller generated Javascript code size:
The current version initializes array elements in separate statements, whereas my version initializes them in the array constructor, e.g.
current version:
var a = new Array();
a[0] = 'foo';
a[1] = 'bar';
...
new version:
var a = new Array('foo','bar',...);
This is important for big arrays containing (textual) small values in small-bandwidth environments and has no drawbacks.
- support for nested collections and maps:
Collections of collections, maps of collections, maps of maps of collections, etc. are supported. The nesting level is not limited (but will be, in practice, limited by stack size or the javascript interpreter).
- correct JavaScript string escaping:
The new version uses StringEscapeUtils.escapeJavaScript() from the Jakarta Commons Lang library for generating JavaScript string constants.