Sidenotes App Events

You can listen to events on an instance of Sidenotes.

Callbacks can be registered with the onmethod and unregistered with the removeListener method. A once method is available for convenience if the callback is to be called only once and then unregistered.

var app = Livefyre.Sidenotes(convConfig); 
   app.once('sidenotes.initialized', function () { 
     // Sidenotes initialized!  
});

For more information on Livefyre events, see the JavaScript Events page in the Reference section.

Key Description
sidenotes.initialized Fired when the App is instantiated, has data, and is on the page.
sidenotes.commentFlagged Fired when a comment has been flagged. Data contains:
  • targetId: id of the comment that was flagged
  • type: flag type string (offensive, off-topic, spam, disagree)
sidenotes.commentPosted Fired when a comment has been posted. Data contains:
  • authorId: id of the author of the comment
  • bodyHtml: body of the comment
  • parent: id of the comment’s parent, or null
sidenotes.commentShared Fired when a comment has been shared. Data contains:
  • targetId: id of the comment that was shared
  • sharedToFacebook: whether the comment was shared to Facebook
  • sharedToTwitter: whether the comment was shared to Twitter
sidenotes.commentVoted Fired when a comment has been voted on. Data contains:
  • targetId: id of the comment that was voted on
  • targetAuthorId: id of the author whose comment was voted on
  • type: numerical vote type: 0: ‘clear’, 1: ‘upvote’, or 2: ‘downvote’
sidenotes.userLoggedIn Fired when a user logs in. Data contains:
  • avatar: avatar url for the user
  • displayName: display name of the user
  • id: id of the user
  • isModerator: whether the user is a moderator of the current collection
sidenotes.userLoggedOut Fired when a user logs out

On this page