XML3D.tools.Class needs two parameters, baseClass and body. But most of the time the base class is not used at all and only the body is passed into the function.
A better interface would be to create a class with:
myClass = XML3D.tools.Class({body});
and extend this class in this way:
myExtendedClass = myClass.extend({extendedBody});
This is similar to the class creation in http://backbonejs.org/.
XML3D.tools.Classneeds two parameters,baseClassandbody. But most of the time the base class is not used at all and only the body is passed into the function.A better interface would be to create a class with:
and extend this class in this way:
This is similar to the class creation in http://backbonejs.org/.