Skip to content
This repository

Provide info when using reddit button #500

Open
jrbasso opened this Issue August 18, 2012 · 0 comments

1 participant

Juan Basso
Juan Basso

The reddit button do not provide a way to get information or catch events from the events. It makes hard to integrate with the pages and impossible to track clicks, votes, etc.

Others providers, like twitter and facebook provide it.

As a suggestion, it can be an object attached to the window:

// Reddit button define window.reddit_button

reddit_button.points; // integer with the points to the current url
reddit_button.total_up; // integer with the up votes
reddit_button.total_down; // integer with the down votes
reddit_button.events('vote_up', func); // func will be trigged when the user vote up
reddit_button.events('vote_down', func); // func will be trigged when the user vote down
reddit_button.events('submit', func); // func will be trigged when the user submit the page
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.