mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
26 lines
534 B
JavaScript
26 lines
534 B
JavaScript
![]() |
NEWSBLUR.Models.Feed = Backbone.Model.extend({
|
||
|
|
||
|
});
|
||
|
|
||
|
NEWSBLUR.Collections.Feeds = Backbone.Collection.extend({
|
||
|
|
||
|
model: NEWSBLUR.Models.Feed,
|
||
|
|
||
|
url: '/reader/feeds',
|
||
|
|
||
|
fetch: function(options) {
|
||
|
options = _.extend({
|
||
|
data: {
|
||
|
v: 2
|
||
|
}
|
||
|
}, options);
|
||
|
return Backbone.Collection.prototype.fetch.call(this, options);
|
||
|
},
|
||
|
|
||
|
parse: function(data) {
|
||
|
console.log(["parsing collection", data]);
|
||
|
return data.feeds;
|
||
|
}
|
||
|
|
||
|
|
||
|
});
|