{"action":"closed","issue":{"url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/2213","repository_url":"https://api.github.com/repos/bridgedotnet/Bridge","labels_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/2213/labels{/name}","comments_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/2213/comments","events_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/2213/events","html_url":"https://github.com/bridgedotnet/Bridge/issues/2213","id":198566860,"number":2213,"title":"Difference in compiled JS in between deck and VS - Possible symbol resolving failed","user":{"login":"beercsaba","id":24902130,"avatar_url":"https://avatars.githubusercontent.com/u/24902130?v=3","gravatar_id":"","url":"https://api.github.com/users/beercsaba","html_url":"https://github.com/beercsaba","followers_url":"https://api.github.com/users/beercsaba/followers","following_url":"https://api.github.com/users/beercsaba/following{/other_user}","gists_url":"https://api.github.com/users/beercsaba/gists{/gist_id}","starred_url":"https://api.github.com/users/beercsaba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beercsaba/subscriptions","organizations_url":"https://api.github.com/users/beercsaba/orgs","repos_url":"https://api.github.com/users/beercsaba/repos","events_url":"https://api.github.com/users/beercsaba/events{/privacy}","received_events_url":"https://api.github.com/users/beercsaba/received_events","type":"User","site_admin":false},"labels":[{"id":74689535,"url":"https://api.github.com/repos/bridgedotnet/Bridge/labels/defect","name":"defect","color":"FF4136","default":false}],"state":"closed","locked":false,"assignee":{"login":"vladsch","id":378225,"avatar_url":"https://avatars.githubusercontent.com/u/378225?v=3","gravatar_id":"","url":"https://api.github.com/users/vladsch","html_url":"https://github.com/vladsch","followers_url":"https://api.github.com/users/vladsch/followers","following_url":"https://api.github.com/users/vladsch/following{/other_user}","gists_url":"https://api.github.com/users/vladsch/gists{/gist_id}","starred_url":"https://api.github.com/users/vladsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladsch/subscriptions","organizations_url":"https://api.github.com/users/vladsch/orgs","repos_url":"https://api.github.com/users/vladsch/repos","events_url":"https://api.github.com/users/vladsch/events{/privacy}","received_events_url":"https://api.github.com/users/vladsch/received_events","type":"User","site_admin":false},"assignees":[{"login":"vladsch","id":378225,"avatar_url":"https://avatars.githubusercontent.com/u/378225?v=3","gravatar_id":"","url":"https://api.github.com/users/vladsch","html_url":"https://github.com/vladsch","followers_url":"https://api.github.com/users/vladsch/followers","following_url":"https://api.github.com/users/vladsch/following{/other_user}","gists_url":"https://api.github.com/users/vladsch/gists{/gist_id}","starred_url":"https://api.github.com/users/vladsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladsch/subscriptions","organizations_url":"https://api.github.com/users/vladsch/orgs","repos_url":"https://api.github.com/users/vladsch/repos","events_url":"https://api.github.com/users/vladsch/events{/privacy}","received_events_url":"https://api.github.com/users/vladsch/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/bridgedotnet/Bridge/milestones/36","html_url":"https://github.com/bridgedotnet/Bridge/milestone/36","labels_url":"https://api.github.com/repos/bridgedotnet/Bridge/milestones/36/labels","id":2184662,"number":36,"title":"15.7","description":"","creator":{"login":"geoffreymcgill","id":62210,"avatar_url":"https://avatars.githubusercontent.com/u/62210?v=3","gravatar_id":"","url":"https://api.github.com/users/geoffreymcgill","html_url":"https://github.com/geoffreymcgill","followers_url":"https://api.github.com/users/geoffreymcgill/followers","following_url":"https://api.github.com/users/geoffreymcgill/following{/other_user}","gists_url":"https://api.github.com/users/geoffreymcgill/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffreymcgill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffreymcgill/subscriptions","organizations_url":"https://api.github.com/users/geoffreymcgill/orgs","repos_url":"https://api.github.com/users/geoffreymcgill/repos","events_url":"https://api.github.com/users/geoffreymcgill/events{/privacy}","received_events_url":"https://api.github.com/users/geoffreymcgill/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":47,"state":"open","created_at":"2016-12-08T18:31:09Z","updated_at":"2017-01-12T11:17:35Z","due_on":"2017-01-16T08:00:00Z","closed_at":null},"comments":3,"created_at":"2017-01-03T20:56:59Z","updated_at":"2017-01-12T11:17:35Z","closed_at":"2017-01-12T11:17:35Z","body":"[forum link](http://forums.bridge.net/forum/community/help/3240-difference-in-compiled-js-in-between-deck-and-vs)\r\n\r\n### Expected\r\n\r\n```js\r\nvar dataTable = $(idSelector).DataTable( { \"language\": { \"url\": \"//cdn.datatables.net/plug-ins/1.10.13/i18n/Hungarian.json\" } } ) ;\r\n```\r\n\r\n### Actual\r\n```\r\nTypeError: Cannot read property 'script' of undefined\r\n /RunHandler.ashx?h=1599467679:23 Function.getTable()\r\n```\r\n```js\r\nvar dataTable = Bridge.bridge.script.write(\"$(idSelector).DataTable( { \\\"language\\\": { \\\"url\\\": \\\"//cdn.datatables.net/plug-ins/1.10.13/i18n/Hungarian.json\\\" } } ) \");\r\n```\r\n\r\n### Steps To Reproduce\r\n\r\nhttp://deck.net/dd360cb16b6e3390243ae4d8f0909653\r\n\r\n```cs\r\nusing Bridge;\r\n\r\nnamespace Issue1\r\n{\r\n    public class UIUtils\r\n    {\r\n        public static void Main()\r\n        {\r\n            var t = UIUtils.DataTables.GetTable();\r\n            \r\n            // Sould be 1\r\n            System.Console.WriteLine(t.i);\r\n        }\r\n        \r\n        public class DataTables\r\n        {\r\n            public static DataTable GetTable()\r\n            {\r\n                return Script.Write<DataTable>(\"{i:1}\");\r\n            }\r\n        }\r\n\r\n        public class DataTable\r\n        {\r\n            public int i;\r\n        }\r\n    }\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"LeonidVeriga"}}