Helma Logo
main list history
previous version  overview  next version

Version 2 by hannes on 02. April 2009, 11:01

This page docuents new features in Helma 1.7. As Helma 1.7 hasn't been released yet, this page is incomplete and work-in-progress.

=== Case sensitive HopObject property names

Property names in HopObjects are now case sensitive. This means that obj.foo, obj.Foo and obj.FOO no longer point to the same property. This feature should help to enforce good programming habits and speed up property access.

=== Programmatically generated collections

Helma 1.7 defines a new static method on HopObject constructors that allows to *generate HopObject collections via JavaScript|Creating collections programmatically*. The method is called HopObject.getCollection() and takes a single JavaScript object as argument. It returns a HopObject that is equivalent to the one you would get by defining it as a collection in a type.properties file.

=== Programmatically define defined HopObject mappings

There is a new and experimental definePrototype function that allows to *define prototype mappings via JavaScript|defining HopObject mappings programmatically*. In its current implementation, there is a global function called definePrototype() that takes two arguments: The prototype name, and a JavaScript object describing the type mapping.

     removed
     added