Skip to content

Instantly share code, notes, and snippets.

@toonketels
Created September 23, 2013 12:03
Show Gist options
  • Save toonketels/6669563 to your computer and use it in GitHub Desktop.
Save toonketels/6669563 to your computer and use it in GitHub Desktop.
Copy backbone Model attributes from Chrome Console to clipboard
// Copies backbone model attributes to clipboard.
// "myModel" is a reference to the Backbone.Model,
// change it to yours
// Use it in Chrome console
// Ref: https://developers.google.com/chrome-developer-tools/docs/commandline-api
copy(JSON.stringify(myModel.toJSON()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment