{"action":"created","issue":{"url":"https://api.github.com/repos/mbostock/d3/issues/2430","labels_url":"https://api.github.com/repos/mbostock/d3/issues/2430/labels{/name}","comments_url":"https://api.github.com/repos/mbostock/d3/issues/2430/comments","events_url":"https://api.github.com/repos/mbostock/d3/issues/2430/events","html_url":"https://github.com/mbostock/d3/issues/2430","id":75321457,"number":2430,"title":"axis.ticks() returns Arguments object after axis.ticks(count)","user":{"login":"wrummler","id":3069355,"avatar_url":"https://avatars.githubusercontent.com/u/3069355?v=3","gravatar_id":"","url":"https://api.github.com/users/wrummler","html_url":"https://github.com/wrummler","followers_url":"https://api.github.com/users/wrummler/followers","following_url":"https://api.github.com/users/wrummler/following{/other_user}","gists_url":"https://api.github.com/users/wrummler/gists{/gist_id}","starred_url":"https://api.github.com/users/wrummler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrummler/subscriptions","organizations_url":"https://api.github.com/users/wrummler/orgs","repos_url":"https://api.github.com/users/wrummler/repos","events_url":"https://api.github.com/users/wrummler/events{/privacy}","received_events_url":"https://api.github.com/users/wrummler/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mbostock/d3/labels/bug","name":"bug","color":"d62728"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mbostock/d3/milestones/32","html_url":"https://github.com/mbostock/d3/milestones/3.5.x","labels_url":"https://api.github.com/repos/mbostock/d3/milestones/32/labels","id":860338,"number":32,"title":"3.5.x","description":"","creator":{"login":"mbostock","id":230541,"avatar_url":"https://avatars.githubusercontent.com/u/230541?v=3","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","site_admin":false},"open_issues":45,"closed_issues":34,"state":"open","created_at":"2014-11-10T16:45:16Z","updated_at":"2015-10-21T21:51:16Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-05-11T18:50:52Z","updated_at":"2015-10-21T21:51:25Z","closed_at":null,"body":"    d3.svg.axis().ticks().constructor // function Array() { [native code] }\r\n    d3.svg.axis().ticks().toString() // \"10\"\r\n\r\n    d3.svg.axis().ticks(10).ticks().constructor // function Object() { [native code] }\r\n    d3.svg.axis().ticks(10).ticks().toString() // \"[object Arguments]\"\r\n\r\nThis bit me when I was feeding an explicit tick spec of an axis to the underlying scale of the axis to get tick values from the scale to manipulate and then feed back to the axis. `scale.ticks` did not like the `Arguments` object, giving me `[]`.\r\n\r\nThe problem is this line in `axis.ticks`:\r\n\r\n    tickArguments_ = arguments;\r\n\r\nThat line should probably look or at least behave like this:\r\n\r\n    tickArguments_ = Array.prototype.slice.call(arguments);\r\n\r\nIn any case, an invocation's `arguments` object shouldn't be exposed to its callers."},"comment":{"url":"https://api.github.com/repos/mbostock/d3/issues/comments/150035383","html_url":"https://github.com/mbostock/d3/issues/2430#issuecomment-150035383","issue_url":"https://api.github.com/repos/mbostock/d3/issues/2430","id":150035383,"user":{"login":"mbostock","id":230541,"avatar_url":"https://avatars.githubusercontent.com/u/230541?v=3","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T21:51:25Z","updated_at":"2015-10-21T21:51:25Z","body":"Sounds reasonable."}}