Version 1 (modified by euzuro, 7 years ago)

creating 2.2 release notes wiki -- adding first item

OpenLayers 2.2 Release Notes

Removal of Prototype Library

  • Improvement of class definition vs instantiation (#75) Instead of using
        Object.extent( new OpenLayers.X(), { 
            //prototype goes here 
        });
    
    the syntax is now:
        OpenLayers.Class.inherit( OpenLayers.X, OpenLayers.Y, {
            //prototype goes here
        });
    
    Besides simply being more readable and understandable, the main benefit of this new enhancement (see r1647 for details) is that it removes the extraneous calls to classes' initialize() method during class definitions. This means no more do you need to test
        if (arguments.length > 0) 
    
    inside a superclass's constructor before doing instance-specific work.