@eydamson wrote:
how can i make a cc.Class that has a constructor with arguments?..
// BaseTest cc.Class({ ctor (args) { // do something to args } });
// Test cc.Class({ extends : BaseTest ctor (args) { // do something to args this._super(args); } });
it gives me this warning
Can not instantiate CCClass with arguments.
what is the fix for this? thanks
Posts: 1
Participants: 1