lib/event-list.js
function (markerName) {
      var i, finalDetail;
      var lastEventId = 0;
      for (i = 0; i < this._events.length; i++) {
         var evt = this._events[i];

         if ((evt.eventType === 'MarkerRecorded') && (evt.markerRecordedEventAttributes.markerName === markerName) && (parseInt(evt.eventId, 10) > lastEventId)) {
            finalDetail = evt.markerRecordedEventAttributes.details;
            lastEventId = evt.eventId;
         }
      }
      return finalDetail;
   }
function (markerName) {
      var i, finalDetail;
      var lastEventId = 0;
      for (i = 0; i < this._events.length; i++) {
         var evt = this._events[i];

         if ((evt.eventType === 'MarkerRecorded') && (evt.markerRecordedEventAttributes.markerName === markerName) && (parseInt(evt.eventId, 10) > lastEventId)) {
            finalDetail = evt.markerRecordedEventAttributes.details;
            lastEventId = evt.eventId;
         }
      }
      return finalDetail;
   }
function ( markerName ) { var i , finalDetail ; var lastEventId = 0 ; for ( i = 0 ; i < this . _events . length ; i ++ ) { var evt = this . _events [ i ] ; if ( ( evt . eventType === 'MarkerRecorded' ) && ( evt . markerRecordedEventAttributes . markerName === markerName ) && ( parseInt ( evt . eventId , 10 ) > lastEventId ) ) { finalDetail = evt . markerRecordedEventAttributes . details ; lastEventId = evt . eventId ; } } return finalDetail ; }
Get the details of the last marker with the given name
@param {String} markerName
@returns {Mixed}
Get the details of the last marker with the given name