{"url":"https://api.github.com/repos/open-cogsci/osweb/issues/32","repository_url":"https://api.github.com/repos/open-cogsci/osweb","labels_url":"https://api.github.com/repos/open-cogsci/osweb/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/open-cogsci/osweb/issues/32/comments","events_url":"https://api.github.com/repos/open-cogsci/osweb/issues/32/events","html_url":"https://github.com/open-cogsci/osweb/issues/32","id":682782114,"node_id":"MDU6SXNzdWU2ODI3ODIxMTQ=","number":32,"title":"Endless loop caused by inline javascript ","user":{"login":"SCgeeker","id":7576931,"node_id":"MDQ6VXNlcjc1NzY5MzE=","avatar_url":"https://avatars.githubusercontent.com/u/7576931?v=4","gravatar_id":"","url":"https://api.github.com/users/SCgeeker","html_url":"https://github.com/SCgeeker","followers_url":"https://api.github.com/users/SCgeeker/followers","following_url":"https://api.github.com/users/SCgeeker/following{/other_user}","gists_url":"https://api.github.com/users/SCgeeker/gists{/gist_id}","starred_url":"https://api.github.com/users/SCgeeker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SCgeeker/subscriptions","organizations_url":"https://api.github.com/users/SCgeeker/orgs","repos_url":"https://api.github.com/users/SCgeeker/repos","events_url":"https://api.github.com/users/SCgeeker/events{/privacy}","received_events_url":"https://api.github.com/users/SCgeeker/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":410672930,"node_id":"MDU6TGFiZWw0MTA2NzI5MzA=","url":"https://api.github.com/repos/open-cogsci/osweb/labels/bug","name":"bug","color":"ee0701","default":true,"description":null}],"state":"closed","locked":false,"assignees":[],"milestone":null,"comments":2,"created_at":"2020-08-20T14:53:27Z","updated_at":"2020-09-16T12:50:16Z","closed_at":"2020-09-16T12:50:16Z","assignee":null,"author_association":"NONE","issue_field_values":[],"type":null,"active_lock_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0},"issue_dependencies_summary":{"blocked_by":0,"total_blocked_by":0,"blocking":0,"total_blocking":0},"body":"Hi, \r\n\r\nMy study has a practice session where participants have to correctly answered all the items. If one item was responded incorrectly, the javascript code will reset the counter and restart the loop. This code works well in OpenSesame, but it can not stop the loop if the participants answered all the responses correctly in the second loop. Here is a short script reproduced the errors in OSWEB 1.3.8:\r\n\r\n[OSWEB_loop_control.zip](https://github.com/open-cogsci/osweb/files/5103806/OSWEB_loop_control.zip)\r\n","closed_by":{"login":"smathot","id":594936,"node_id":"MDQ6VXNlcjU5NDkzNg==","avatar_url":"https://avatars.githubusercontent.com/u/594936?v=4","gravatar_id":"","url":"https://api.github.com/users/smathot","html_url":"https://github.com/smathot","followers_url":"https://api.github.com/users/smathot/followers","following_url":"https://api.github.com/users/smathot/following{/other_user}","gists_url":"https://api.github.com/users/smathot/gists{/gist_id}","starred_url":"https://api.github.com/users/smathot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smathot/subscriptions","organizations_url":"https://api.github.com/users/smathot/orgs","repos_url":"https://api.github.com/users/smathot/repos","events_url":"https://api.github.com/users/smathot/events{/privacy}","received_events_url":"https://api.github.com/users/smathot/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https://api.github.com/repos/open-cogsci/osweb/issues/32/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/open-cogsci/osweb/issues/32/timeline","performed_via_github_app":null,"state_reason":"completed","pinned_comment":null}