blob: 34f55fefba55bd60d0bf7b597b42237f66aef846 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
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);
});
});
}
};
|