Skip to content
Browse files

Merge pull request #722 from jasonm/jm-format-function-defs

Make function definition formatting consistent for docs
  • Loading branch information...
2 parents 7070c27 + becb826 commit f9ae1a16868a44e1d48a51cc8238894d070ad79c @jashkenas jashkenas committed Nov 4, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 backbone.js
View
8 backbone.js
@@ -481,7 +481,7 @@
},
// Get the model at the given index.
- at: function(index) {
+ at : function(index) {
return this.models[index];
},
@@ -554,7 +554,7 @@
// Proxy to _'s chain. Can't be proxied the same way the rest of the
// underscore methods are proxied because it relies on the underscore
// constructor.
- chain: function () {
+ chain : function () {
return _(this.models).chain();
},
@@ -567,7 +567,7 @@
},
// Prepare a model to be added to this collection
- _prepareModel: function(model, options) {
+ _prepareModel : function(model, options) {
if (!(model instanceof Backbone.Model)) {
var attrs = model;
model = new this.model(attrs, {collection: this});
@@ -977,7 +977,7 @@
},
// Clears all callbacks previously bound to the view with `delegateEvents`.
- undelegateEvents: function() {
+ undelegateEvents : function() {
$(this.el).unbind('.delegateEvents' + this.cid);
},

0 comments on commit f9ae1a1

Please sign in to comment.
Something went wrong with that request. Please try again.