new class style

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

new class style

Tim Schaub-2
As of revision 3767[1], we'll be using a new syntax for class definitions.

Old syntax:

     var MyClass = OpenLayers.Class.create();
     MyClass.prototype = OpenLayers.Class.inherit(BaseClass, {
         // class def here
     });

New syntax:

     var MyClass = OpenLayers.Class(BaseClass, {
         // class def here
     });

Until 3.0, you can use the create and inherit methods - and old style
classes can inherit from new style classes.  After 3.0, only the new
syntax will be supported.  With this change, all classes in the library
use the new syntax.

Tim

[1] http://trac.openlayers.org/changeset/3767
_______________________________________________
Dev mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/dev