Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Application framework, extending functionality of Backbone.js

branch: master

test

latest commit a8b63fda78
Jørn Andre Tangen @gorillatron authored May 02, 2013
Octocat-spinner-32 cerebral test May 02, 2013
Octocat-spinner-32 docs comfort to new spec September 04, 2012
Octocat-spinner-32 test test May 02, 2013
Octocat-spinner-32 tools keep modifies version of dox August 08, 2012
Octocat-spinner-32 .gitignore ignoring node_modules June 22, 2012
Octocat-spinner-32 .travis.yml travis yml July 28, 2012
Octocat-spinner-32 README.md Sandbox in readme July 29, 2012
Octocat-spinner-32 license added license September 21, 2012
Octocat-spinner-32 package.json package.json August 08, 2012
README.md

cerebral.js Build Status

PREVIEW! many features not implemented

Bringing consciousness down the backbone.

The cerebral framework/library is meant to extend the base functionality of Backbone.js and provide robust patterns of modularity, module loading, unloading and loosely coupled module communication through a pub-sub application core.

It is loosely based on the concepts discussed in Scalable Application Architecture by Nicholas Zakas. and the backbone-aura framework. Tip of the hat to Addy Osmani.

Overview

For more details se the (not yet created) link to docs

Application Core

  • Loading and unloading modules
  • Methods for publishing and subscribing to events. Used for inter module communication.

Sandbox

Modules are started with their own sandbox objects that restrict jquery DOM acces to the element their given.

Backbone extensions

Many of the Backbone classes are extended with features and functionality the programmers often have to write themselves or use plugins to use.

Events

  • All event objects can bind to each other and properly remove bindings
  • Added once for firing a handler once then unbinding

Model

  • getters
  • setters

View

  • Attaching and detaching subviews
  • Proper event handling and disposing, leave no zombie behind
  • Disposing propegates down to all subviews

Router

  • Attach and detach delegate views to pick up link clicks on.
Something went wrong with that request. Please try again.