Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Why jQuery.proxy rocks my world.
It would look something like this
var FBNotificationWatcher = new Class({ Implements: [Options], options: { timeout: 500, url: 'http://dot.com', onRequestComplete: function(response){} }, initialize: function(options){ this.setOptions(options); this.request = new Request({ url: this.options.url, onComplete: function(resp){ this.processNotifications(resp); this.options.onRequestComplete(resp); }.bind(this) }); this.getNotifications(); }, getNotifications: function(){ this.request.send({//data}); return this; }, processNotifications: function(rawNotificationData){ //do stuff this.getNotifications.delay(this.options.timeout, this); } });
There are no comments on this comment yet.
It would look something like this
I'll check out backbone if I'm doing some jQuery dev.