Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A jQuery to MooTools adapter to use with Backbone.js

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 backbone @ c8cbde2 Update backbone to 0.9.1 February 18, 2012
Octocat-spinner-32 test Add $ = jQuery mapping to tests February 24, 2012
Octocat-spinner-32 .gitignore Initial commit November 21, 2011
Octocat-spinner-32 .gitmodules Initial commit November 21, 2011
Octocat-spinner-32 LICENSE Initial commit November 21, 2011
Octocat-spinner-32 MooToolsAdapter.js Update MooToolsAdapter.js February 14, 2013
Octocat-spinner-32 Update README February 24, 2012
Octocat-spinner-32 mootools-core-1.4.1.js Initial commit November 21, 2011

Backbone MooTools is an adapter for using Backbone with the MooTools framework. The basic idea behind it is to use the jQuery API as a wrapper to MooTools calls to allow us to seamlessly use Backbone.js without changing its internals.


To use backbone-mootools just download one of our handy pre-packed js files. If you don't want to worry about including the MooTools dependancies yourself, we provide a js file with all the required dependancies. Otherwise, simply download the MooToolsAdapter.js and embed it before your backbone.js embed.

For example:

<script src=">
<script src=""></script>
<script src=""></script>

Note: backbone-mootools does not remap the $ object. It only remaps the jQuery object.


Backbone MooTools depends on the following MooTools modules:

  • Core/Browser
  • Core/Class
  • Core/Element
  • Core/Element.Style
  • Core/Element.Event
  • Core/Element.Delegation
  • Core/Event
  • Core/Request.JSON
  • Core/JSON
  • Core/DOMReady


The MooToolsBackbone Adapter currently doesn't support attaching multiple views to a single element. Backbone does this using jQuery's event namespacing. However, since MooTools doesn't support event namespacing we can't do this currently. We currently strip all namespaces from events when we bind them.

Because of these limitations the following Backbone unit tests are expected to fail on Backbone 0.9.1:

  • Backbone.View: View: delegateEvents
  • Backbone.View: View: undelegateEvents
  • Backbone.View: View: multiple views per element


Supported Libraries

This library is designed to be used with the backbone project, which is linked to in a submodule. All the details on backbone and its license can be found at

Copyright and License

Copyright 2011 Inkling Systems, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Something went wrong with that request. Please try again.