A basic boilerplate for controlling your page. This DOMController Object is intended to provide structure to your event binds and basic page interaction.
Two variations of the DOMController are provided:
A slightly easier to understand variation of this boilerplate and applicable for most any webpage interaction control.
A prototype "Class" that is compatible with dependency systems like RequireJS and CommonJS, but operates just fine without them. While the DOMController Object is intended to operate as a singleton Object, it is written in a manner that it could be instantiated multiple times. This boilerplate could be adapted for use as a pattern for any type of modular code structure.
This project uses jQuery
This is the heavily documented version of the JSON formatted DOMController Boilerplate and should probably only used for reference.
If you wish to use the JSON formatted DOMController in your own project, base it off this file. It contains the minimal documentation for use and operation and has the example code found in main.documented.js
removed.
This is the heavily documented version of the prototype "Class" DOMController Boilerplate and should probably only used for reference.
If you wish to use the prototype "Class" DOMController in your own project, base it off this file. It contains the minimal documentation for use and operation and has the example code found in main.class.documented.js
removed.
Dave Shepard
Code and documentation copyright 2015 Digital Telepathy. Code released under the MIT license.