This is the API documentation for AFrameJS.
AFrame is both an Object Oriented and Aspect Oriented framework that is being built to fill the huge hole in Javascript libraries - one that allows traditional applications to be built. Most people using Javascript do not realize the language's full power, still thinking of Javascript as a toy language used only to do DOM manipulation. Since the language's flexibility for OOP or AOP is not widely understood, most of the code out there is written using procedural methodologies - methodologies that went out of fashion many years ago.
The underlying principles of development in AFrame are:
- Create the basic classes necessary to create an MVC application
- A powerful event system makes life much simpler and more flexible than chains of callbacks
- Favor composition over inheritance, use AOP to augment OOP whenever it makes sense
- Forms are central to nearly all web applications
- Collections of related data are essential
- Use features/standards from HTML5 where possible
- Be database agnostic - who knows what data persistence schemes are going to be used
- Clean up references when objects are torn down so that memory leaks are minimized
- Make AFrame as easy to add on to as possible
Check out these docs, select the classes on the left to see what they are about. They are full of examples to quickly learn, and more are being added all of the time. Examine the unit tests to get a better idea of how the parts fit together.