Skip to content

@erkie /hell.js secret
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
hell
markAsRead: function(link) {
if ( this.unreadPosts.indexOf(link) != -1 )
this.unreadPosts.remove(link);
this.db.transaction(function(tx) {
tx.executeSql(
'UPDATE posts SET is_read = 1 WHERE link = ? AND feed_id = ?',
[link, this.id],
function(tx, res) {
this.posts.forEach(function(post) { if ( post.link == link ) post.is_read = true; });
feedreader.setCount();
}.bind(this), sqlError
);
}.bind(this));
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.