Created
September 23, 2013 12:03
-
-
Save toonketels/6669563 to your computer and use it in GitHub Desktop.
Copy backbone Model attributes from Chrome Console to clipboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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