Ticket #1802 (closed feature: fixed)
Add the possibility to check if an instance inherits from a given class
| Reported by: | pvalsecc | Owned by: | tschaub |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.8 Release |
| Component: | BaseTypes.Class | Version: | 2.7 |
| Keywords: | Cc: | ||
| State: | Complete |
Description
It would be cool to be able to do something like that:
var drag = new OpenLayers.Control.DragFeature({});
...
if(OpenLayers.Class.isInstanceOf(drag, "OpenLayers.Control")) {
...
}
Please review the attached patch.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

