Created
January 16, 2012 20:03
-
-
Save jonsmock/1622673 to your computer and use it in GitHub Desktop.
backbone sandbox
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
<html> | |
<head> | |
<title>REPL!</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js" type="text/javascript"></script> | |
<script src="http://documentcloud.github.com/backbone/test/vendor/underscore-1.1.6.js" type="text/javascript"></script> | |
<script src="http://documentcloud.github.com/backbone/backbone.js" type="text/javascript"></script> | |
<script src="https://raw.github.com/PaulUithol/Backbone-relational/master/backbone-relational.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
// helper to actually 'inspect' objects | |
function inspectObject(o) { | |
var out = ''; | |
for (var p in o) { | |
out += p + ': ' + o[p] + '\n'; | |
} | |
$('#inspect-results').html(out); | |
} | |
</script> | |
<script type="text/javascript"> | |
// Our sandbox | |
$().ready(function() { | |
var myObject = {'something': 1, 'other thing': 2}; | |
inspectObject(myObject); | |
}); | |
</script> | |
</head> | |
<body> | |
<pre id="inspect-results"> | |
</pre> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment