Set an Event

<void> setEvent(<LViS.Event> event)

With Studio is initialised, you can now use methods of the Listings object to find the current or next Event and make it active. LViS.setEvent sets an Event as current working event and event object fires LViS.Event.ON_READY when it's fully initialised.

Example

var current = LViS.Listings.getCurrent(),
    event   = (current !== null) ? current[0] : null;

if (event !== null) {
  event.bind(LViS.Event.ON_READY, function () {
    var history = event.getHistory();
  })
  
  LViS.setEvent(event);
}