{"action":"created","issue":{"url":"https://api.github.com/repos/atom/language-javascript/issues/325","repository_url":"https://api.github.com/repos/atom/language-javascript","labels_url":"https://api.github.com/repos/atom/language-javascript/issues/325/labels{/name}","comments_url":"https://api.github.com/repos/atom/language-javascript/issues/325/comments","events_url":"https://api.github.com/repos/atom/language-javascript/issues/325/events","html_url":"https://github.com/atom/language-javascript/issues/325","id":134484108,"number":325,"title":"Wrong scope for `start` method calls","user":{"login":"adambuczynski","id":490562,"avatar_url":"https://avatars.githubusercontent.com/u/490562?v=3","gravatar_id":"","url":"https://api.github.com/users/adambuczynski","html_url":"https://github.com/adambuczynski","followers_url":"https://api.github.com/users/adambuczynski/followers","following_url":"https://api.github.com/users/adambuczynski/following{/other_user}","gists_url":"https://api.github.com/users/adambuczynski/gists{/gist_id}","starred_url":"https://api.github.com/users/adambuczynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adambuczynski/subscriptions","organizations_url":"https://api.github.com/users/adambuczynski/orgs","repos_url":"https://api.github.com/users/adambuczynski/repos","events_url":"https://api.github.com/users/adambuczynski/events{/privacy}","received_events_url":"https://api.github.com/users/adambuczynski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/language-javascript/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-18T05:17:44Z","updated_at":"2016-02-24T17:53:21Z","closed_at":null,"body":"Consider the following: two exactly the same lines, but one has a `Start` call and the other lowercase `start`:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/490562/13134503/dc1ebaa8-d66b-11e5-80d0-f96bf9903190.png)\r\n\r\nBoth should be scoped as `entity.name.function.js`, rather than support.constant.dom.js.\r\n\r\nThose dom, document and window methods should probably be taken out of the language scoping if you ask me, and just scoped as a generic function call. Or, at least de-prioritised so that other scopes take precedence. \r\n\r\nSee https://github.com/atom/language-javascript/blob/master/grammars/javascript.cson#L794-L809\r\n\r\nNot sure how relevant those scopes are anymore nowadays and how important it is to scope them."},"comment":{"url":"https://api.github.com/repos/atom/language-javascript/issues/comments/188380734","html_url":"https://github.com/atom/language-javascript/issues/325#issuecomment-188380734","issue_url":"https://api.github.com/repos/atom/language-javascript/issues/325","id":188380734,"user":{"login":"adambuczynski","id":490562,"avatar_url":"https://avatars.githubusercontent.com/u/490562?v=3","gravatar_id":"","url":"https://api.github.com/users/adambuczynski","html_url":"https://github.com/adambuczynski","followers_url":"https://api.github.com/users/adambuczynski/followers","following_url":"https://api.github.com/users/adambuczynski/following{/other_user}","gists_url":"https://api.github.com/users/adambuczynski/gists{/gist_id}","starred_url":"https://api.github.com/users/adambuczynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adambuczynski/subscriptions","organizations_url":"https://api.github.com/users/adambuczynski/orgs","repos_url":"https://api.github.com/users/adambuczynski/repos","events_url":"https://api.github.com/users/adambuczynski/events{/privacy}","received_events_url":"https://api.github.com/users/adambuczynski/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T17:53:21Z","updated_at":"2016-02-24T17:53:21Z","body":"This also affects other support constants used as methods, like `.length`:\r\n\r\n![ss](https://www.dropbox.com/s/qs3qvpiqf3un7ez/Screenshot%202016-02-25%2006.51.48.png?dl=1)"}}