Backbone.js as a Kanso package. Modeled after the underscore package.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
backbone.js
kanso.json

README.md

Kanso-Backbone

Backbone.js packaged as a Kanso module. See the test branch for example usage.

Install

Add modules to your dependencies section in kanso.json.

...
  "dependencies": {
    "backbone": null,
    ...
  }

Run kanso install to fetch the package.

Usage

(function($, Backbone) {
  // backbone can use any DOM library you like
  Backbone.setDomLibrary($);

  // use Backbone like a boss
  ...

  // use require if you use the jquery kanso module
  // or window.$ if you use the stock jQuery
})(require('jquery'), require('backbone'));