{"action":"created","issue":{"url":"https://api.github.com/repos/GraphWalker/graphwalker-project/issues/116","repository_url":"https://api.github.com/repos/GraphWalker/graphwalker-project","labels_url":"https://api.github.com/repos/GraphWalker/graphwalker-project/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/GraphWalker/graphwalker-project/issues/116/comments","events_url":"https://api.github.com/repos/GraphWalker/graphwalker-project/issues/116/events","html_url":"https://github.com/GraphWalker/graphwalker-project/issues/116","id":197912846,"number":116,"title":"Functions in graphwalker not working when containing semicolon","user":{"login":"AliKarpuzoglu","id":9629776,"avatar_url":"https://avatars.githubusercontent.com/u/9629776?v=3","gravatar_id":"","url":"https://api.github.com/users/AliKarpuzoglu","html_url":"https://github.com/AliKarpuzoglu","followers_url":"https://api.github.com/users/AliKarpuzoglu/followers","following_url":"https://api.github.com/users/AliKarpuzoglu/following{/other_user}","gists_url":"https://api.github.com/users/AliKarpuzoglu/gists{/gist_id}","starred_url":"https://api.github.com/users/AliKarpuzoglu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AliKarpuzoglu/subscriptions","organizations_url":"https://api.github.com/users/AliKarpuzoglu/orgs","repos_url":"https://api.github.com/users/AliKarpuzoglu/repos","events_url":"https://api.github.com/users/AliKarpuzoglu/events{/privacy}","received_events_url":"https://api.github.com/users/AliKarpuzoglu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-28T20:38:45Z","updated_at":"2016-12-29T09:34:40Z","closed_at":null,"body":"Hi,\r\nThis is a follow up on a bug reported by @sisso19 here https://github.com/KristianKarl/GraphWalker/issues/23\r\nAfter using graphwalker and the built in javascript functionality for a while, I have found some Issues when using functions, specifically when using semicolon in them(e.g. when using multiple statements).\r\nIt seems as if the semicolon are used as a split for the different actions in the graphwalker, which makes for-loops apparently impossible.\r\nA function with more than one line is also  not usable because of this\r\nHere are two examples for those errors.\r\n![for loop](https://cloud.githubusercontent.com/assets/9629776/21530812/6297878a-cd11-11e6-898b-0f180370eb4e.PNG)\r\n![multiple statement](https://cloud.githubusercontent.com/assets/9629776/21530811/629729c0-cd11-11e6-9461-8164237d6a11.PNG)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/GraphWalker/graphwalker-project/issues/comments/269604153","html_url":"https://github.com/GraphWalker/graphwalker-project/issues/116#issuecomment-269604153","issue_url":"https://api.github.com/repos/GraphWalker/graphwalker-project/issues/116","id":269604153,"user":{"login":"nilols","id":1027531,"avatar_url":"https://avatars.githubusercontent.com/u/1027531?v=3","gravatar_id":"","url":"https://api.github.com/users/nilols","html_url":"https://github.com/nilols","followers_url":"https://api.github.com/users/nilols/followers","following_url":"https://api.github.com/users/nilols/following{/other_user}","gists_url":"https://api.github.com/users/nilols/gists{/gist_id}","starred_url":"https://api.github.com/users/nilols/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilols/subscriptions","organizations_url":"https://api.github.com/users/nilols/orgs","repos_url":"https://api.github.com/users/nilols/repos","events_url":"https://api.github.com/users/nilols/events{/privacy}","received_events_url":"https://api.github.com/users/nilols/received_events","type":"User","site_admin":false},"created_at":"2016-12-29T09:34:40Z","updated_at":"2016-12-29T09:34:40Z","body":"One workaround is to have the code in java and then just call the java method from JavaScript, or create the JavaScript function in the context from Java and then just call the function from JavaScript. "}}
{"actor":{"display_login":"nilols"}}