Ticket #6696 (closed defect: fixed)
dojo.declare doesn't allow mixins that aren't declared with dojo.declare
| Reported by: | guest | Owned by: | sjmiles |
|---|---|---|---|
| Priority: | high | Milestone: | 1.2 |
| Component: | Core | Version: | 1.1.0 |
| Severity: | major | Keywords: | declare |
| Cc: | anthony.fryer@… |
Description (last modified by BryanForbes) (diff)
The destroy method doesn't work on the Grid at the moment. It produces an error message saying something about not finding the m.findMixin method.
The reason for this error is because of the inheritance of VirtualGrid? from _Events, or more precisely it is because of the way _Events is defined. _Events does not use dojo.declare. Instead it is created as an empty function which is then dojo.extend'ed with methods.
To fix the Grid destroy method, _Event just needs to be defined using dojo.declare. Below is how _Event should be declared to resolve this bug.
dojo.provide("dojox.grid._Events");
dojo.declare("dojox.grid._Events", null, {
/* _Events methods go here */
});
Attachments
Change History
Note: See
TracTickets for help on using
tickets.