Skip to content

Commit

Permalink
removing toString
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Oct 13, 2010
1 parent 53ac621 commit f09e791
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 68 deletions.
11 changes: 0 additions & 11 deletions backbone.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,6 @@
// `changed` event.
previousAttributes : function() {
return _.clone(this._previousAttributes);
},

// String representation of the model. Override this to provide a nice way
// to print models to the console.
toString : function() {
return 'Model ' + this.id;
}

});
Expand Down Expand Up @@ -411,11 +405,6 @@
return model.save(null, {success : success, error : options.error});
},

// Override this function to get convenient logging in the console.
toString : function() {
return 'Collection (' + this.length + " models)";
},

// Initialize or re-initialize all internal state. Called when the
// collection is refreshed.
_initialize : function(options) {
Expand Down
Loading

0 comments on commit f09e791

Please sign in to comment.