{"action":"created","issue":{"url":"https://api.github.com/repos/Khan/live-editor/issues/568","repository_url":"https://api.github.com/repos/Khan/live-editor","labels_url":"https://api.github.com/repos/Khan/live-editor/issues/568/labels{/name}","comments_url":"https://api.github.com/repos/Khan/live-editor/issues/568/comments","events_url":"https://api.github.com/repos/Khan/live-editor/issues/568/events","html_url":"https://github.com/Khan/live-editor/issues/568","id":143518452,"number":568,"title":"Yoko Oh noes throws already corrected error","user":{"login":"lavisrap","id":3194815,"avatar_url":"https://avatars.githubusercontent.com/u/3194815?v=3","gravatar_id":"","url":"https://api.github.com/users/lavisrap","html_url":"https://github.com/lavisrap","followers_url":"https://api.github.com/users/lavisrap/followers","following_url":"https://api.github.com/users/lavisrap/following{/other_user}","gists_url":"https://api.github.com/users/lavisrap/gists{/gist_id}","starred_url":"https://api.github.com/users/lavisrap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lavisrap/subscriptions","organizations_url":"https://api.github.com/users/lavisrap/orgs","repos_url":"https://api.github.com/users/lavisrap/repos","events_url":"https://api.github.com/users/lavisrap/events{/privacy}","received_events_url":"https://api.github.com/users/lavisrap/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-25T15:02:22Z","updated_at":"2016-04-10T18:24:00Z","closed_at":"2016-04-10T18:23:59Z","body":"I integrated live-editor in my website some time ago. Now I updated to the currents version. Everything works, but Yoko Oh nows appears too often. E.g. after I correct a mistake and change to another line, it shows the old (already corrected) error again. I located the problem in `live-editor.ui.js`  in the `maybeShowErrors` method. There I changed to following code:\r\n\r\n```\r\nmaybeShowErrors: function maybeShowErrors() {\r\n\r\n\tif (!this.hasErrors() || !this.editor || !this.editor.getCursor()) {\r\n\t\treturn;\r\n\t}\r\n\r\n\tthis.setThinkingState();\r\n\t// Make doubly sure that we clear the timeout\r\n\twindow.clearTimeout(this.errorTimeout);\r\n\tthis.errorTimeout = setTimeout((function () {\r\n\t\tif (this.hasErrors()) {\r\n\t\t\tthis.setErrorState();\r\n\t\t}\r\n\t}).bind(this), 60000);\r\n};\r\n```\r\n\r\nstripping some functionality- That works fine for me, but I don't know where the stripped functionality would be needed.\r\n"},"comment":{"url":"https://api.github.com/repos/Khan/live-editor/issues/comments/208037260","html_url":"https://github.com/Khan/live-editor/issues/568#issuecomment-208037260","issue_url":"https://api.github.com/repos/Khan/live-editor/issues/568","id":208037260,"user":{"login":"kevinbarabash","id":1044413,"avatar_url":"https://avatars.githubusercontent.com/u/1044413?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinbarabash","html_url":"https://github.com/kevinbarabash","followers_url":"https://api.github.com/users/kevinbarabash/followers","following_url":"https://api.github.com/users/kevinbarabash/following{/other_user}","gists_url":"https://api.github.com/users/kevinbarabash/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinbarabash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinbarabash/subscriptions","organizations_url":"https://api.github.com/users/kevinbarabash/orgs","repos_url":"https://api.github.com/users/kevinbarabash/repos","events_url":"https://api.github.com/users/kevinbarabash/events{/privacy}","received_events_url":"https://api.github.com/users/kevinbarabash/received_events","type":"User","site_admin":false},"created_at":"2016-04-10T18:23:59Z","updated_at":"2016-04-10T18:23:59Z","body":"> It works! And I like the new experience also. Thanks. (I use it directly\r\nas LiveEditor-Option \"newErrorExperience: true\")\r\n\r\nExcellent.  I've made the same modification to the demo file.\r\n\r\n> But sure you can have a look: lafisrap.in-berlin.de:8080\r\n\r\nI tried but the page timed out."}}