Title: In JS, `this` in object literals is untyped · Issue #11072 · microsoft/TypeScript · GitHub
Open Graph Title: In JS, `this` in object literals is untyped · Issue #11072 · microsoft/TypeScript
X Title: In JS, `this` in object literals is untyped · Issue #11072 · microsoft/TypeScript
Description: From @ishuvalov on September 20, 2016 7:54 VSCode Version: Code 1.5.2 (66f37fd2a99eb9d628dd374d81d78835b410c39b, 2016-09-12T13:05:12.065Z) OS Version: Darwin x64 15.6.0 Steps to Reproduce: Consider the following code: (function(undefined...
Open Graph Description: From @ishuvalov on September 20, 2016 7:54 VSCode Version: Code 1.5.2 (66f37fd2a99eb9d628dd374d81d78835b410c39b, 2016-09-12T13:05:12.065Z) OS Version: Darwin x64 15.6.0 Steps to Reproduce: Consider...
X Description: From @ishuvalov on September 20, 2016 7:54 VSCode Version: Code 1.5.2 (66f37fd2a99eb9d628dd374d81d78835b410c39b, 2016-09-12T13:05:12.065Z) OS Version: Darwin x64 15.6.0 Steps to Reproduce: Consider...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/11072
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"In JS, `this` in object literals is untyped","articleBody":"_From @ishuvalov on September 20, 2016 7:54_\n- VSCode Version: Code 1.5.2 (66f37fd2a99eb9d628dd374d81d78835b410c39b, 2016-09-12T13:05:12.065Z)\n- OS Version: Darwin x64 15.6.0\n\nSteps to Reproduce:\n1. Consider the following code:\n\n``` js\n(function(undefined) {\n MyView = Backbone.View.extend({\n secondFunc: function () {\n return;\n },\n\n mainFunc: function() {\n this.secondFunc()\n }\n });\n})();\n```\n1. The Goto Definition, Peek Definition and other IntelliSense features are not working for `this.secondFunc()` call.\n\n_Copied from original issue: Microsoft/vscode#12306_\n","author":{"url":"https://github.com/waderyan","@type":"Person","name":"waderyan"},"datePublished":"2016-09-23T00:05:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/11072/TypeScript/issues/11072"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:09f779ba-f8ee-394e-6db3-838833d05a47 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B368:119F46:1006333:1702ECA:6A63384D |
| html-safe-nonce | 62c7fc50ecafe1721decb31d57c83c2dbf1052c6744e41c07b3a982999264d43 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzY4OjExOUY0NjoxMDA2MzMzOjE3MDJFQ0E6NkE2MzM4NEQiLCJ2aXNpdG9yX2lkIjoiOTA1MzYxMjAxMzE1NjI1MTcyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e78d0c3a1b6ca87356932107668b418fc0412333275385b66fc2c8ac387cceac |
| hovercard-subject-tag | issue:178751412 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/11072/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6d850953837669a2104cec2aba0715497c295ace3aa9d8b3286f34c9aca66e45/microsoft/TypeScript/issues/11072 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6d850953837669a2104cec2aba0715497c295ace3aa9d8b3286f34c9aca66e45/microsoft/TypeScript/issues/11072 |
| og:image:alt | From @ishuvalov on September 20, 2016 7:54 VSCode Version: Code 1.5.2 (66f37fd2a99eb9d628dd374d81d78835b410c39b, 2016-09-12T13:05:12.065Z) OS Version: Darwin x64 15.6.0 Steps to Reproduce: Consider... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | waderyan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 59e55daad7174ca59d63c6974d58276ccb5477442e550bebb3c035e1bef11c94 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 990295d92a4cc7b63fbbd83a046217cd7d77d49c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width