{"action":"opened","issue":{"url":"https://api.github.com/repos/bang590/JSPatch/issues/82","labels_url":"https://api.github.com/repos/bang590/JSPatch/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/bang590/JSPatch/issues/82/comments","events_url":"https://api.github.com/repos/bang590/JSPatch/issues/82/events","html_url":"https://github.com/bang590/JSPatch/issues/82","id":100757279,"number":82,"title":"What's the best way to clear context after running `evaluateScript`?","user":{"login":"xilin","id":543395,"avatar_url":"https://avatars.githubusercontent.com/u/543395?v=3","gravatar_id":"","url":"https://api.github.com/users/xilin","html_url":"https://github.com/xilin","followers_url":"https://api.github.com/users/xilin/followers","following_url":"https://api.github.com/users/xilin/following{/other_user}","gists_url":"https://api.github.com/users/xilin/gists{/gist_id}","starred_url":"https://api.github.com/users/xilin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xilin/subscriptions","organizations_url":"https://api.github.com/users/xilin/orgs","repos_url":"https://api.github.com/users/xilin/repos","events_url":"https://api.github.com/users/xilin/events{/privacy}","received_events_url":"https://api.github.com/users/xilin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-13T12:31:19Z","updated_at":"2015-08-13T12:31:19Z","closed_at":null,"body":"I want to use JSPatch to apply hotfix. So my problem is that when the app start, it will run `startEngine` and `evaluateScript`. \r\n\r\nAfter downloading the hotfix, I need to reload the hotfix js scripts without previous definitions.\r\n\r\nI did a quick test and it seems that run `evaluateScript` again didn't clean previous script context.\r\n\r\nWhat's the best way to do this? Thanks."}}