Skip to content

Class: better interface #4

@uykusuz

Description

@uykusuz

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/.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions