Created
November 7, 2010 01:35
-
-
Save zenom/665877 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$(document).ready(function() { | |
// 4cd5b71dd64d240a09000001 | |
Backbone.sync = function(method, model) { | |
alert(method + ' -- ' + model.url); | |
}; | |
//var Tweet = Backbone.Model.extend({}); | |
//var test = new Tweet; | |
//test.fetch(); | |
var Status = Backbone.Model; | |
var Tweet = new Backbone.Collection; | |
Tweet.model = Status; | |
Tweet.url = '/social/twitter/status'; | |
Tweet.fetch(); | |
var t = Tweet.get('4cd5b71dd64d240a09000001'); | |
console.log(t); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment