insert(parameters) {
            if (typeof this.timeline_parameters === "undefined") {
                console.error("Cannot add new trials to a trial-level node.");
            }
            else {
                this.timeline_parameters.timeline.push(new TimelineNode(this.jsPsych, Object.assign(Object.assign({}, this.node_trial_data), parameters), this, this.timeline_parameters.timeline.length));
            }
        }
// add new trials to end of this timeline

add new trials to end of this timeline
add new trials to end of this timeline
insert(parameters) {
            if (typeof this.timeline_parameters === "undefined") {
                console.error("Cannot add new trials to a trial-level node.");
            }
            else {
                this.timeline_parameters.timeline.push(new TimelineNode(this.jsPsych, Object.assign(Object.assign({}, this.node_trial_data), parameters), this, this.timeline_parameters.timeline.length));
            }
        }
insert ( parameters ) { if ( typeof this . timeline_parameters === "undefined" ) { console . error ( "Cannot add new trials to a trial-level node." ) ; } else { this . timeline_parameters . timeline . push ( new TimelineNode ( this . jsPsych , Object . assign ( Object . assign ( { } , this . node_trial_data ) , parameters ) , this , this . timeline_parameters . timeline . length ) ) ; } }
add new trials to end of this timeline
add new trials to end of this timeline