{"id":23053413,"url":"https://github.com/component/delegate","last_synced_at":"2025-04-03T04:24:32.326Z","repository":{"id":4950211,"uuid":"6107531","full_name":"component/delegate","owner":"component","description":"Event delegation component","archived":false,"fork":false,"pushed_at":"2016-12-22T13:28:16.000Z","size":25,"stargazers_count":35,"open_issues_count":6,"forks_count":20,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-09T19:16:00.997Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/component.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-10-06T22:53:00.000Z","updated_at":"2025-02-06T16:39:21.000Z","dependencies_parsed_at":"2022-08-18T02:45:31.788Z","dependency_job_id":null,"html_url":"https://github.com/component/delegate","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fdelegate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fdelegate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fdelegate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fdelegate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/component","download_url":"https://codeload.github.com/component/delegate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246935239,"owners_count":20857366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-16T00:18:09.199Z","updated_at":"2025-04-03T04:24:32.305Z","avatar_url":"https://github.com/component.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# delegate\n\n  Low-level event delegation component.\n\n## Installation\n\n    $ component install component/delegate\n\n## Example\n\n```js\nvar delegate = require('delegate');\nvar ul = document.querySelector('ul');\nvar n = 0;\n\nvar fn = delegate.bind(ul, 'li a', 'click', function(e){\n  console.log(e.target);\n  console.log(e.delegateTarget); // =\u003e \"\u003ca\u003e\"\n  if (++n == 3) {\n    console.log('unbind');\n    delegate.unbind(ul, 'click', fn, false);\n  }\n}, false);\n```\n\n## API\n\n### .bind(el, selector, type, callback, [capture])\n\n  Bind and return a callback which may be passed to `.unbind()`.\n\n### .unbind(el, type, callback, [capture])\n\n  Unbind.\n\n## License\n\n  MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fdelegate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomponent%2Fdelegate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fdelegate/lists"}