mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
add comments to extension template
This commit is contained in:
parent
0f5a17749b
commit
16b5c2cb6a
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user