Get Most Recent Element

<Object|null> getLastFromHistory()

Returns:

  • object of last published element

  • null there is no any published elements

Example

var event = LViS.getEvent();
var element = LViS.getLastFromHistory();
// returns last published LViS element