Merge pull request #690 from vijaymarupudi/master

Fix callback check typo in jsPsych.addNodeToEndOfTimeline; add video to registerPreload docs
This commit is contained in:
Becky Gilbert 2020-10-15 17:03:58 -07:00 committed by GitHub
commit c9237d33da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -309,7 +309,7 @@ window.jsPsych = (function() {
core.addNodeToEndOfTimeline = function(new_timeline, preload_callback){ core.addNodeToEndOfTimeline = function(new_timeline, preload_callback){
timeline.insert(new_timeline); timeline.insert(new_timeline);
if(typeof preload_callback !== 'undefinded'){ if(typeof preload_callback !== 'undefined'){
if(opts.auto_preload){ if(opts.auto_preload){
jsPsych.pluginAPI.autoPreload(timeline, preload_callback); jsPsych.pluginAPI.autoPreload(timeline, preload_callback);
} else { } else {