source/js/TL.Timeline.js
function(n) {
		if(n >= 0  && n < this.config.events.length) {
			// If removing the current, nav to new one first
			if(this.config.events[n].unique_id == this.current_id) {
				if(n < this.config.events.length - 1) {
					this.goTo(n + 1);
				} else {
					this.goTo(n - 1);
				}
			}

			var event = this.config.events.splice(n, 1);
			delete this.config.event_dict[event[0].unique_id];
			this._storyslider.destroySlide(this.config.title ? n+1 : n);
			this._storyslider._updateDrawSlides();

			this._timenav.destroyMarker(n);
			this._timenav._updateDrawTimeline(false);

			this.fire("removed", {unique_id: event[0].unique_id});
		}
	}
function(n) {
		if(n >= 0  && n < this.config.events.length) {
			// If removing the current, nav to new one first
			if(this.config.events[n].unique_id == this.current_id) {
				if(n < this.config.events.length - 1) {
					this.goTo(n + 1);
				} else {
					this.goTo(n - 1);
				}
			}

			var event = this.config.events.splice(n, 1);
			delete this.config.event_dict[event[0].unique_id];
			this._storyslider.destroySlide(this.config.title ? n+1 : n);
			this._storyslider._updateDrawSlides();

			this._timenav.destroyMarker(n);
			this._timenav._updateDrawTimeline(false);

			this.fire("removed", {unique_id: event[0].unique_id});
		}
	}
function ( n ) { if ( n >= 0 && n < this . config . events . length ) { // If removing the current, nav to new one first if ( this . config . events [ n ] . unique_id == this . current_id ) { if ( n < this . config . events . length - 1 ) { this . goTo ( n + 1 ) ; } else { this . goTo ( n - 1 ) ; } } var event = this . config . events . splice ( n , 1 ) ; delete this . config . event_dict [ event [ 0 ] . unique_id ] ; this . _storyslider . destroySlide ( this . config . title ? n + 1 : n ) ; this . _storyslider . _updateDrawSlides ( ) ; this . _timenav . destroyMarker ( n ) ; this . _timenav . _updateDrawTimeline ( false ) ; this . fire ( "removed" , { unique_id : event [ 0 ] . unique_id } ) ; } }
Remove an event
Remove an event