{"action":"created","issue":{"url":"https://api.github.com/repos/ninsuo/symfony-collection/issues/35","repository_url":"https://api.github.com/repos/ninsuo/symfony-collection","labels_url":"https://api.github.com/repos/ninsuo/symfony-collection/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/ninsuo/symfony-collection/issues/35/comments","events_url":"https://api.github.com/repos/ninsuo/symfony-collection/issues/35/events","html_url":"https://github.com/ninsuo/symfony-collection/issues/35","id":163159652,"number":35,"title":"Add event callback after init","user":{"login":"Soullivaneuh","id":1698357,"avatar_url":"https://avatars.githubusercontent.com/u/1698357?v=3","gravatar_id":"","url":"https://api.github.com/users/Soullivaneuh","html_url":"https://github.com/Soullivaneuh","followers_url":"https://api.github.com/users/Soullivaneuh/followers","following_url":"https://api.github.com/users/Soullivaneuh/following{/other_user}","gists_url":"https://api.github.com/users/Soullivaneuh/gists{/gist_id}","starred_url":"https://api.github.com/users/Soullivaneuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Soullivaneuh/subscriptions","organizations_url":"https://api.github.com/users/Soullivaneuh/orgs","repos_url":"https://api.github.com/users/Soullivaneuh/repos","events_url":"https://api.github.com/users/Soullivaneuh/events{/privacy}","received_events_url":"https://api.github.com/users/Soullivaneuh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-30T13:01:00Z","updated_at":"2016-07-04T07:20:32Z","closed_at":null,"body":"According to this documentation: http://symfony-collection.fuz.org/options/eventCallbacks\r\n\r\nWe can define event callback on the collection init.\r\n\r\nI have a global init for all collection type:\r\n\r\n```javascript\r\n$(document).ready(function () {\r\n    $('.collection-type').collection({\r\n        allow_up: false,\r\n        allow_down: false,\r\n        allow_duplicate: false,\r\n        add: '<button class=\"btn btn-success\" type=\"button\" title=\"add\"><i class=\"fa fa-plus\"></i></button>'\r\n    });\r\n});\r\n```\r\n\r\nIs that possible to attach a callback after the init?"},"comment":{"url":"https://api.github.com/repos/ninsuo/symfony-collection/issues/comments/230222166","html_url":"https://github.com/ninsuo/symfony-collection/issues/35#issuecomment-230222166","issue_url":"https://api.github.com/repos/ninsuo/symfony-collection/issues/35","id":230222166,"user":{"login":"ninsuo","id":4152132,"avatar_url":"https://avatars.githubusercontent.com/u/4152132?v=3","gravatar_id":"","url":"https://api.github.com/users/ninsuo","html_url":"https://github.com/ninsuo","followers_url":"https://api.github.com/users/ninsuo/followers","following_url":"https://api.github.com/users/ninsuo/following{/other_user}","gists_url":"https://api.github.com/users/ninsuo/gists{/gist_id}","starred_url":"https://api.github.com/users/ninsuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninsuo/subscriptions","organizations_url":"https://api.github.com/users/ninsuo/orgs","repos_url":"https://api.github.com/users/ninsuo/repos","events_url":"https://api.github.com/users/ninsuo/events{/privacy}","received_events_url":"https://api.github.com/users/ninsuo/received_events","type":"User","site_admin":false},"created_at":"2016-07-04T07:20:32Z","updated_at":"2016-07-04T07:20:32Z","body":"Good idea, will have a look today.\r\nThanks\r\nA"}}
{"actor":{"display_login":"ninsuo"}}