SCORE_UPDATE

This is called whenever the score changes and it passes a score object with the properties positive, negative, and grabs.

USAGE

API.on(API.SCORE_UPDATE, callback);

function callback(obj) {

    alert(obj.positive + " woots, " + obj.negative + " mehs, " + obj.grabs + " grabs);

}

Comments

  • Avatar
    Fusix

    Please change the documentation. It should be
    API.on(API.SCORE_UPDATE, callback);

  • Avatar
    Brand Ambassador Team

    Done, thanks for the feedback!

  • Avatar
    WiBla

    A " is missing after grabs);

  • Avatar
    Vincent Voet

    alert(obj.positive + " woots, " + obj.negative + " mehs, " + obj.grabs + " grabs);

    should be

    alert(obj.positive + " woots, " + obj.negative + " mehs, " + obj.grabs + " grabs");

    There is missing an " behind grabs
    -SnakedMusique (vav17nl)

  • Avatar
    MIxxx

    This event fires twice when a user changes their vote , it should only fire once each time a user votes

  • Avatar
    Fusix

    Come on dude? How old are you?? 6??

    This is definitely NOT the right place for advertisements.

    REMOVE

Powered by Zendesk