{"action":"created","issue":{"url":"https://api.github.com/repos/mibitzi/gopherjs-ko/issues/1","labels_url":"https://api.github.com/repos/mibitzi/gopherjs-ko/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mibitzi/gopherjs-ko/issues/1/comments","events_url":"https://api.github.com/repos/mibitzi/gopherjs-ko/issues/1/events","html_url":"https://github.com/mibitzi/gopherjs-ko/issues/1","id":80993948,"number":1,"title":"Cannot make a Computed close over an ObservableArray...","user":{"login":"shutej","id":341378,"avatar_url":"https://avatars.githubusercontent.com/u/341378?v=3","gravatar_id":"","url":"https://api.github.com/users/shutej","html_url":"https://github.com/shutej","followers_url":"https://api.github.com/users/shutej/followers","following_url":"https://api.github.com/users/shutej/following{/other_user}","gists_url":"https://api.github.com/users/shutej/gists{/gist_id}","starred_url":"https://api.github.com/users/shutej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shutej/subscriptions","organizations_url":"https://api.github.com/users/shutej/orgs","repos_url":"https://api.github.com/users/shutej/repos","events_url":"https://api.github.com/users/shutej/events{/privacy}","received_events_url":"https://api.github.com/users/shutej/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-26T14:42:24Z","updated_at":"2015-06-14T16:02:36Z","closed_at":null,"body":"This crashes, saying something like...\r\n\r\n**Uncaught Error: cannot internalize ko.ObservableArray**\r\n\r\n```go\r\ntype ViewModel struct {\r\n\t*js.Object\r\n\tValues   ko.ObservableArray `js:\"values\"`\r\n\tMaxValue ko.Computed        `js:\"maxValue\"`\r\n}\r\n\r\n// ...\r\n\r\n\tself.MaxValue = ko.NewComputed(func() interface{} {\r\n\t\tlog.Print(\"MaxValue being called!\")\r\n\t\tmax := float64(0)\r\n\t\tlog.Print(\"self.Values: %v\", self.Values)\r\n\t\tfor i := 0; i < self.Values.Length(); i++ {\r\n\t\t\tmax = math.Max(max, self.Values.Index(i).Float())\r\n\t\t}\r\n\t\treturn max\r\n\t})\r\n```\r\n\r\n![screen shot 2015-05-26 at 10 39 12 am](https://cloud.githubusercontent.com/assets/341378/7814965/8a4727ca-0393-11e5-9e63-b390f2f19b6d.png)"},"comment":{"url":"https://api.github.com/repos/mibitzi/gopherjs-ko/issues/comments/111843176","html_url":"https://github.com/mibitzi/gopherjs-ko/issues/1#issuecomment-111843176","issue_url":"https://api.github.com/repos/mibitzi/gopherjs-ko/issues/1","id":111843176,"user":{"login":"mibitzi","id":3488011,"avatar_url":"https://avatars.githubusercontent.com/u/3488011?v=3","gravatar_id":"","url":"https://api.github.com/users/mibitzi","html_url":"https://github.com/mibitzi","followers_url":"https://api.github.com/users/mibitzi/followers","following_url":"https://api.github.com/users/mibitzi/following{/other_user}","gists_url":"https://api.github.com/users/mibitzi/gists{/gist_id}","starred_url":"https://api.github.com/users/mibitzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mibitzi/subscriptions","organizations_url":"https://api.github.com/users/mibitzi/orgs","repos_url":"https://api.github.com/users/mibitzi/repos","events_url":"https://api.github.com/users/mibitzi/events{/privacy}","received_events_url":"https://api.github.com/users/mibitzi/received_events","type":"User","site_admin":false},"created_at":"2015-06-14T16:02:36Z","updated_at":"2015-06-14T16:02:36Z","body":"This should now be resolved with #2 "}}