Skip to content

Instantly share code, notes, and snippets.

@julesbou
Created March 11, 2016 17:22
Show Gist options
  • Save julesbou/5463232d0985ab71abec to your computer and use it in GitHub Desktop.
Save julesbou/5463232d0985ab71abec to your computer and use it in GitHub Desktop.
Backbone.Model.prototype.log =
Backbone.View.prototype.log = function() {
console.log.apply(console,
['[' + this.cid + ']'].concat([].splice.call(arguments, 0))
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment