{"action":"closed","issue":{"url":"https://api.github.com/repos/lcdsantos/jQuery-Selectric/issues/134","repository_url":"https://api.github.com/repos/lcdsantos/jQuery-Selectric","labels_url":"https://api.github.com/repos/lcdsantos/jQuery-Selectric/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/lcdsantos/jQuery-Selectric/issues/134/comments","events_url":"https://api.github.com/repos/lcdsantos/jQuery-Selectric/issues/134/events","html_url":"https://github.com/lcdsantos/jQuery-Selectric/issues/134","id":179625925,"number":134,"title":"Apply hooks locally","user":{"login":"gearsdigital","id":965069,"avatar_url":"https://avatars.githubusercontent.com/u/965069?v=3","gravatar_id":"","url":"https://api.github.com/users/gearsdigital","html_url":"https://github.com/gearsdigital","followers_url":"https://api.github.com/users/gearsdigital/followers","following_url":"https://api.github.com/users/gearsdigital/following{/other_user}","gists_url":"https://api.github.com/users/gearsdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/gearsdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gearsdigital/subscriptions","organizations_url":"https://api.github.com/users/gearsdigital/orgs","repos_url":"https://api.github.com/users/gearsdigital/repos","events_url":"https://api.github.com/users/gearsdigital/events{/privacy}","received_events_url":"https://api.github.com/users/gearsdigital/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-27T21:59:04Z","updated_at":"2016-10-07T14:37:24Z","closed_at":"2016-10-07T14:37:24Z","body":"Hooksare currently applied globally. If I write something like that `$.fn.selectric.hooks.add('Init', 'placeholder', setPlaceholder);` all other selectric instances are affected.\r\n\r\nWouldn't it be better to allow hooks to be applied per instance? What was the original thought to implement this function? The Event-System is relatively similar, isn't it?\r\n\r\n```js\r\nconst select = $('select').selectric();\r\nconst hooks = select.selectric('hooks');\r\n\r\nhooks.add('Init', 'placeholder', setPlaceholder);\r\n```\r\n\r\n#140 "}}
{"actor":{"display_login":"lcdsantos"}}