It seems that to subclass in can.js, we can use
- var Programmer = Person({});
and can't use
- var Programmer = Person();
Is it just a convention, or supposedly it seems that Person() can see that there is no argument and still do the same as what Person({}) does? (which is to return a constructor function for the subclass).
code sample at: http://jsfiddle.net/hNzHe/6/