function TransmissionFeed() { this.initialize(); } TransmissionFeed.prototype = { /*-------------------------------------------- * * C O N S T R U C T O R * *--------------------------------------------*/ initialize: function() { this._feed_list = $('#feed_list')[0]; this.feeds = []; }, load_feeds: function() { var curThis = this; sendMessage('feed-get', {fields: ['matches', 'url', 'id']}, function(arguments) { $(arguments.feeds).each(function(index, ele) { curThis.feeds[curThis.feeds.length] = new Feed(curThis._feed_list, ele); }); }); } };