mixin w/o a base case

530
2
08-27-2010 10:00 AM
HaroldBostic
Occasional Contributor II
Prior to dojo v1.4 you could do:

dojo.declare("A",[null,B],{someFuncs});

after v1.4 you get error declare: mixin #0 is null

what is an exceptable pattern to mixin a class when you don't have a base class to inherit from?

Thanks
0 Kudos
2 Replies
derekswingley1
Frequent Contributor
If I understand you correctly, you should just pass in null. Check out the docs for dojo.declare:  http://docs.dojocampus.org/dojo/declare
0 Kudos
HaroldBostic
Occasional Contributor II
If I understand you correctly, you should just pass in null. Check out the docs for dojo.declare:  http://docs.dojocampus.org/dojo/declare


can you provide an example.  Prior to v1.4 I could pass in null, but that no longer works.  hopefully I'm missing something simple
0 Kudos