{"action":"closed","issue":{"url":"https://api.github.com/repos/ruyadorno/angular-simple-slider/issues/11","repository_url":"https://api.github.com/repos/ruyadorno/angular-simple-slider","labels_url":"https://api.github.com/repos/ruyadorno/angular-simple-slider/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/ruyadorno/angular-simple-slider/issues/11/comments","events_url":"https://api.github.com/repos/ruyadorno/angular-simple-slider/issues/11/events","html_url":"https://github.com/ruyadorno/angular-simple-slider/issues/11","id":143043831,"number":11,"title":"Current attribute assumes next/prev is a string","user":{"login":"nvernooy","id":5332516,"avatar_url":"https://avatars.githubusercontent.com/u/5332516?v=3","gravatar_id":"","url":"https://api.github.com/users/nvernooy","html_url":"https://github.com/nvernooy","followers_url":"https://api.github.com/users/nvernooy/followers","following_url":"https://api.github.com/users/nvernooy/following{/other_user}","gists_url":"https://api.github.com/users/nvernooy/gists{/gist_id}","starred_url":"https://api.github.com/users/nvernooy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvernooy/subscriptions","organizations_url":"https://api.github.com/users/nvernooy/orgs","repos_url":"https://api.github.com/users/nvernooy/repos","events_url":"https://api.github.com/users/nvernooy/events{/privacy}","received_events_url":"https://api.github.com/users/nvernooy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-23T18:31:39Z","updated_at":"2016-05-16T00:17:40Z","closed_at":"2016-05-16T00:17:40Z","body":"Want to say thanks for the great work, I just found a minor bug.\r\nThe \"current-slide\" attribute assumes the next/prev parameters are strings. \r\nAnd if a 0 (integer) next index is passed to it,\r\n`if (next && next !== prev)` \r\nevaluates to false.\r\n\r\nIt took me a while to figure out why the current slide was not working for me when I was using $index inside an ngRepeat. It was easy to fix by casting $index to string, but I think it would be better to change the conditional to something like \r\n`if (next !== undefined && next !== prev)`"}}