I'm not even sure it will work. In general, no, mixins don't have other classes implemented into them.
On Fri, Oct 16, 2009 at 3:04 PM, Ryan Florence <[email protected]> wrote: > > Is this a bad idea? > > var Mixin = new Class({ > > method: function(){ > // do stuff > this.fireEvent('onMethod'); > } > > }); > > var Widget = new Class({ > > Implements: [Events,Options,Mixin], > > options: { > foo: 'bar' > onMethod: function(){ > // do stuff > } > } > > }); > > Having a mixin that requires Options and Events? It's conceivable that I > person could try to use the Mixin without implementing Options and Events in > their class. >
