Skip to content

Commit

Permalink
closes #26
Browse files Browse the repository at this point in the history
  • Loading branch information
jodeleeuw committed Feb 13, 2014
1 parent d7e93c6 commit 9f39bd8
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions plugins/jspsych-vsl-animate-occlusion.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,17 @@
var i = trial.stims[which_image];
which_image++;

eve.once("raphael.attr.src."+c.id, function(){
c.animate(d[0].params, d[0].ms, function() {
c.animate(d[1].params, d[1].ms, function() {
next_step();
});
});
});
c.attr({
src: i
});
c.animate(d[0].params, d[0].ms, function() {
c.animate(d[1].params, d[1].ms, function() {
next_step();
});
});

}
}

Expand Down

0 comments on commit 9f39bd8

Please sign in to comment.