{"action":"created","issue":{"url":"https://api.github.com/repos/google/closure-library/issues/611","labels_url":"https://api.github.com/repos/google/closure-library/issues/611/labels{/name}","comments_url":"https://api.github.com/repos/google/closure-library/issues/611/comments","events_url":"https://api.github.com/repos/google/closure-library/issues/611/events","html_url":"https://github.com/google/closure-library/pull/611","id":117938085,"number":611,"title":"Make IeMouseEventSequenceSimulator_ ES5 strict mode compatible.","user":{"login":"hochhaus","id":5508784,"avatar_url":"https://avatars.githubusercontent.com/u/5508784?v=3","gravatar_id":"","url":"https://api.github.com/users/hochhaus","html_url":"https://github.com/hochhaus","followers_url":"https://api.github.com/users/hochhaus/followers","following_url":"https://api.github.com/users/hochhaus/following{/other_user}","gists_url":"https://api.github.com/users/hochhaus/gists{/gist_id}","starred_url":"https://api.github.com/users/hochhaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hochhaus/subscriptions","organizations_url":"https://api.github.com/users/hochhaus/orgs","repos_url":"https://api.github.com/users/hochhaus/repos","events_url":"https://api.github.com/users/hochhaus/events{/privacy}","received_events_url":"https://api.github.com/users/hochhaus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/closure-library/labels/CLA:%20yes","name":"CLA: yes","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"dferrara19","id":5748384,"avatar_url":"https://avatars.githubusercontent.com/u/5748384?v=3","gravatar_id":"","url":"https://api.github.com/users/dferrara19","html_url":"https://github.com/dferrara19","followers_url":"https://api.github.com/users/dferrara19/followers","following_url":"https://api.github.com/users/dferrara19/following{/other_user}","gists_url":"https://api.github.com/users/dferrara19/gists{/gist_id}","starred_url":"https://api.github.com/users/dferrara19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dferrara19/subscriptions","organizations_url":"https://api.github.com/users/dferrara19/orgs","repos_url":"https://api.github.com/users/dferrara19/repos","events_url":"https://api.github.com/users/dferrara19/events{/privacy}","received_events_url":"https://api.github.com/users/dferrara19/received_events","type":"User","site_admin":false},"milestone":null,"comments":12,"created_at":"2015-11-20T00:12:11Z","updated_at":"2015-12-08T00:26:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/google/closure-library/pulls/611","html_url":"https://github.com/google/closure-library/pull/611","diff_url":"https://github.com/google/closure-library/pull/611.diff","patch_url":"https://github.com/google/closure-library/pull/611.patch"},"body":"Previously, IeMouseEventSequenceSimulator_#handleClick_ wrote\r\nto {Event.type,MouseEvent.button} which are read only properties.\r\nWhen running in ES5 strict mode, this causes a run time exception.\r\n\r\nTo avoid writing the read-only properties, create two new MouseEvents\r\nfor the simulated MOUSEDOWN and MOUSEUP events."},"comment":{"url":"https://api.github.com/repos/google/closure-library/issues/comments/162714375","html_url":"https://github.com/google/closure-library/pull/611#issuecomment-162714375","issue_url":"https://api.github.com/repos/google/closure-library/issues/611","id":162714375,"user":{"login":"hochhaus","id":5508784,"avatar_url":"https://avatars.githubusercontent.com/u/5508784?v=3","gravatar_id":"","url":"https://api.github.com/users/hochhaus","html_url":"https://github.com/hochhaus","followers_url":"https://api.github.com/users/hochhaus/followers","following_url":"https://api.github.com/users/hochhaus/following{/other_user}","gists_url":"https://api.github.com/users/hochhaus/gists{/gist_id}","starred_url":"https://api.github.com/users/hochhaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hochhaus/subscriptions","organizations_url":"https://api.github.com/users/hochhaus/orgs","repos_url":"https://api.github.com/users/hochhaus/repos","events_url":"https://api.github.com/users/hochhaus/events{/privacy}","received_events_url":"https://api.github.com/users/hochhaus/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T00:26:24Z","updated_at":"2015-12-08T00:26:24Z","body":"@shicks Good point. I wanted to put the `'use strict';` in the test function but then strict mode only applies to that function (not the functions called by it). Therefore, you'll find the `'use strict';'` in `goog.ui.Control.IeMouseEventSequenceSimulator_.makeLeftMouseEvent_`. This is ugly because that is not strictly testing code but I did not see another way to get that function to run in strict mode."}}