{"action":"closed","issue":{"url":"https://api.github.com/repos/phetsims/arch/issues/11","labels_url":"https://api.github.com/repos/phetsims/arch/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/phetsims/arch/issues/11/comments","events_url":"https://api.github.com/repos/phetsims/arch/issues/11/events","html_url":"https://github.com/phetsims/arch/issues/11","id":53212008,"number":11,"title":"Ensure start/end calls match up","user":{"login":"samreid","id":679486,"avatar_url":"https://avatars.githubusercontent.com/u/679486?v=3","gravatar_id":"","url":"https://api.github.com/users/samreid","html_url":"https://github.com/samreid","followers_url":"https://api.github.com/users/samreid/followers","following_url":"https://api.github.com/users/samreid/following{/other_user}","gists_url":"https://api.github.com/users/samreid/gists{/gist_id}","starred_url":"https://api.github.com/users/samreid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samreid/subscriptions","organizations_url":"https://api.github.com/users/samreid/orgs","repos_url":"https://api.github.com/users/samreid/repos","events_url":"https://api.github.com/users/samreid/events{/privacy}","received_events_url":"https://api.github.com/users/samreid/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phetsims/arch/labels/code%20review","name":"code review","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":{"login":"pixelzoom","id":3046552,"avatar_url":"https://avatars.githubusercontent.com/u/3046552?v=3","gravatar_id":"","url":"https://api.github.com/users/pixelzoom","html_url":"https://github.com/pixelzoom","followers_url":"https://api.github.com/users/pixelzoom/followers","following_url":"https://api.github.com/users/pixelzoom/following{/other_user}","gists_url":"https://api.github.com/users/pixelzoom/gists{/gist_id}","starred_url":"https://api.github.com/users/pixelzoom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixelzoom/subscriptions","organizations_url":"https://api.github.com/users/pixelzoom/orgs","repos_url":"https://api.github.com/users/pixelzoom/repos","events_url":"https://api.github.com/users/pixelzoom/events{/privacy}","received_events_url":"https://api.github.com/users/pixelzoom/received_events","type":"User","site_admin":false},"milestone":null,"comments":15,"created_at":"2015-01-01T03:15:26Z","updated_at":"2015-02-20T22:41:25Z","closed_at":"2015-02-20T22:41:25Z","body":"In #2 @pixelzoom said:\r\n\r\n> :star2: It's up to the client to ensure that phetEvents.start and end calls match up. A programming error (e.g., missing 'end' call) could be very difficult to find. The API should prevent this by identifying and enforcing start/end pairs. Ie, when you call 'end', the implementation is able to verify that it's matching 'start' is on the top of the stack.\r\n\r\nCan you suggest a way of doing this? Are you thinking of adding an argument to the end function?"}}