Skip to content
Backbone.js as a Kanso package. Modeled after the underscore package.
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
backbone.js
kanso.json
readme.md

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'));
Something went wrong with that request. Please try again.