Move inbox collection to the background page

No more waiting, no more messy fetch logic. Background page
bootstraps the inbox and keeps it up to date.
This commit is contained in:
lilia 2015-02-10 15:27:26 -08:00
parent a5bc261365
commit 44b1e5c88e
5 changed files with 55 additions and 24 deletions

View file

@ -229,17 +229,7 @@
only: number
}
});
},
fetchActive: function(options) {
return this.fetch(_.extend(options, {
index: {
name: 'inbox', // 'inbox' index on active_at
order: 'desc' // ORDER timestamp DESC
}
// TODO pagination/infinite scroll
// limit: 10, offset: page*10,
}));
}
});
})();