Ticket #823 (closed feature: fixed)
simplify class stuff
| Reported by: | tschaub | Owned by: | tschaub |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.5 Release |
| Component: | general | Version: | 2.4 |
| Keywords: | Cc: | ||
| State: |
Description
All the extra typing to define classes deal with inheritance is a bother.
I like:
var MyClass = new OpenLayers.Class(Parent1, Parent2, {
// class def here
});
Instead of:
var MyClass = new OpenLayers.Class.create();
MyClass.prototype =
OpenLayers.Class.inherit(Parent1, Parent2, {
// class def here
});
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

