{"id":16760276,"url":"https://github.com/ryanve/elo","last_synced_at":"2025-07-09T04:34:35.099Z","repository":{"id":3649943,"uuid":"4717703","full_name":"ryanve/elo","owner":"ryanve","description":"Lo-fi JavaScript events module.","archived":false,"fork":false,"pushed_at":"2014-12-16T20:40:52.000Z","size":332,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-29T20:17:51.218Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://elo.airve.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"rdok/hubit-cypberpunk","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryanve.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.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-06-19T18:41:24.000Z","updated_at":"2023-08-08T21:07:49.000Z","dependencies_parsed_at":"2022-09-07T03:11:02.109Z","dependency_job_id":null,"html_url":"https://github.com/ryanve/elo","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/ryanve/elo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Felo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Felo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Felo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Felo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanve","download_url":"https://codeload.github.com/ryanve/elo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Felo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264394679,"owners_count":23601347,"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-10-13T04:22:57.463Z","updated_at":"2025-07-09T04:34:34.800Z","avatar_url":"https://github.com/ryanve.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [elo](../../)\n\n#### \u003cb\u003eelo\u003c/b\u003e is a lo-fi cross-browser JavaScript events API that gzips \u003c3k. It's an events library for minimalists. It works as a standalone library or can integrate into a host such as [ender](https://github.com/ender-js/).\n\n## API ([1.6](../../releases))\n\n**elo** does not claim the `$` namespace, however it can be used as such in a closure.\n\n### Methods\n\n#### Events\n\n- `$.on(element, eventName, handler)`\n- `$.off(element, eventName, handler)`\n- `$.one(element, eventName, handler)`\n- `$.trigger(element, eventName, extraParamsArray?)`\n- `$.domReady(fn)` // call `fn` when the DOM is ready\n- `$.hasEvent(eventName, element|tagName?)`\n- `$(stack).on(eventName, handler)`\n- `$(stack).off(eventName, handler)`\n- `$(stack).one(eventName, handler)`\n- `$(stack).trigger(eventName, extraParamsArray?)`\n- `$(document).ready(fn)`\n- `$.fn.dubEvent(shorthandEventNames)`\n\n#### Data \n\n- `$.data(object, key?, value?)`\n- `$.removeData(object, keys?)`\n- `$.cleanData(object)`\n- `$(stack).data(key, value?)`\n- `$(stack).removeData(keys)`\n\n#### Utils\n\n- `$.each(stack, callback, thisArg?, breaker?)`\n- `$(stack).each(callback, thisArg?, breaker?)`\n\n### elo()\n\nThe `elo()` function is a simple OO **wrapper** that works very much like the jQuery function.\n\n- `elo(element)` // wrap a DOM element\n- `elo(stack)` // wrap NodeList or array\n- `elo(selector, context)` // match a selector string via `querySelectorAll`\n- `elo(fn)`      // ready shortcut - `fn` calls like `fn.call(document, elo)`\n\n## Compatibility\n\nSupports all major browsers. Tested in: Chrome, FF3+, Opera, IE7+, Safari. \u003csmall\u003ePlease [report issues here](../../issues).\u003c/small\u003e\n\n## License: [MIT](http://en.wikipedia.org/wiki/MIT_License)\n\nCopyright (C) 2012 by [Ryan Van Etten](https://github.com/ryanve)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanve%2Felo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanve%2Felo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanve%2Felo/lists"}