Skip to content

Instantly share code, notes, and snippets.

@zenom
Created November 7, 2010 01:35
Show Gist options
  • Save zenom/665877 to your computer and use it in GitHub Desktop.
Save zenom/665877 to your computer and use it in GitHub Desktop.
$(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