{"action":"created","issue":{"url":"https://api.github.com/repos/bitovi/canjs/issues/1509","labels_url":"https://api.github.com/repos/bitovi/canjs/issues/1509/labels{/name}","comments_url":"https://api.github.com/repos/bitovi/canjs/issues/1509/comments","events_url":"https://api.github.com/repos/bitovi/canjs/issues/1509/events","html_url":"https://github.com/bitovi/canjs/issues/1509","id":60614511,"number":1509,"title":"Sort plugin fires \"add\" event incorrectly when .push() is called with multiple items","user":{"login":"akagomez","id":82166,"avatar_url":"https://avatars.githubusercontent.com/u/82166?v=3","gravatar_id":"","url":"https://api.github.com/users/akagomez","html_url":"https://github.com/akagomez","followers_url":"https://api.github.com/users/akagomez/followers","following_url":"https://api.github.com/users/akagomez/following{/other_user}","gists_url":"https://api.github.com/users/akagomez/gists{/gist_id}","starred_url":"https://api.github.com/users/akagomez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akagomez/subscriptions","organizations_url":"https://api.github.com/users/akagomez/orgs","repos_url":"https://api.github.com/users/akagomez/repos","events_url":"https://api.github.com/users/akagomez/events{/privacy}","received_events_url":"https://api.github.com/users/akagomez/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"akagomez","id":82166,"avatar_url":"https://avatars.githubusercontent.com/u/82166?v=3","gravatar_id":"","url":"https://api.github.com/users/akagomez","html_url":"https://github.com/akagomez","followers_url":"https://api.github.com/users/akagomez/followers","following_url":"https://api.github.com/users/akagomez/following{/other_user}","gists_url":"https://api.github.com/users/akagomez/gists{/gist_id}","starred_url":"https://api.github.com/users/akagomez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akagomez/subscriptions","organizations_url":"https://api.github.com/users/akagomez/orgs","repos_url":"https://api.github.com/users/akagomez/repos","events_url":"https://api.github.com/users/akagomez/events{/privacy}","received_events_url":"https://api.github.com/users/akagomez/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-03-11T05:57:50Z","updated_at":"2015-03-12T21:02:20Z","closed_at":"2015-03-12T21:02:20Z","body":"For each item that's added to a sorted `can.List` with `.push()` or `.unshift()`, an `add` event is fired with ALL of the items that were passed.\r\n\r\nAn example: \r\n\r\n```\r\nlist.bind('add', function (ev, items, index) {\r\n  console.log('# of items:', items.length); \r\n}); \r\nlist.push(['a', 'b', 'c']); // -> # of items: 3\r\n                            // -> # of items: 3\r\n                            // -> # of items: 3\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/bitovi/canjs/issues/comments/78615838","html_url":"https://github.com/bitovi/canjs/issues/1509#issuecomment-78615838","issue_url":"https://api.github.com/repos/bitovi/canjs/issues/1509","id":78615838,"user":{"login":"daffl","id":338316,"avatar_url":"https://avatars.githubusercontent.com/u/338316?v=3","gravatar_id":"","url":"https://api.github.com/users/daffl","html_url":"https://github.com/daffl","followers_url":"https://api.github.com/users/daffl/followers","following_url":"https://api.github.com/users/daffl/following{/other_user}","gists_url":"https://api.github.com/users/daffl/gists{/gist_id}","starred_url":"https://api.github.com/users/daffl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daffl/subscriptions","organizations_url":"https://api.github.com/users/daffl/orgs","repos_url":"https://api.github.com/users/daffl/repos","events_url":"https://api.github.com/users/daffl/events{/privacy}","received_events_url":"https://api.github.com/users/daffl/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T21:02:19Z","updated_at":"2015-03-12T21:02:19Z","body":"Closed via #1517"}}