add comments to extension template

This commit is contained in:
Becky Gilbert 2021-02-05 18:00:48 -08:00
parent 0f5a17749b
commit 16b5c2cb6a

View File

@ -48,20 +48,21 @@ jsPsych.extensions['new-extension'] = (function () {
var extension = {}; var extension = {};
extension.initialize = function(params){ extension.initialize = function(params){
// params are passed from the extensions parameter in jsPsych.init
} }
extension.on_start = function(params){ extension.on_start = function(params){
// params are passed from the extensions parameter in the trial object
} }
extension.on_load = function(params){ extension.on_load = function(params){
// params are passed from the extensions parameter in the trial object
} }
extension.on_finish = function(params){ extension.on_finish = function(params){
// params are passed from the extensions parameter in the trial object
return { return {
// any data that the extension will add to a trial // any data that the extension returns here will be added to the trial data
} }
} }