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

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 cerebral
Octocat-spinner-32 docs
Octocat-spinner-32 test
Octocat-spinner-32 tools
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 README.md
Octocat-spinner-32 license
Octocat-spinner-32 package.json
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.