{"id":15015720,"url":"https://github.com/emberjs/ember-jquery-legacy","last_synced_at":"2026-02-02T17:40:17.289Z","repository":{"id":33734824,"uuid":"134634727","full_name":"emberjs/ember-jquery-legacy","owner":"emberjs","description":null,"archived":false,"fork":false,"pushed_at":"2022-08-30T20:00:00.000Z","size":76,"stargazers_count":0,"open_issues_count":26,"forks_count":3,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-10-29T14:56:04.280Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emberjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-23T23:08:18.000Z","updated_at":"2022-08-30T20:00:05.000Z","dependencies_parsed_at":"2022-07-31T11:08:02.898Z","dependency_job_id":null,"html_url":"https://github.com/emberjs/ember-jquery-legacy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emberjs%2Fember-jquery-legacy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emberjs%2Fember-jquery-legacy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emberjs%2Fember-jquery-legacy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emberjs%2Fember-jquery-legacy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emberjs","download_url":"https://codeload.github.com/emberjs/ember-jquery-legacy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246940376,"owners_count":20858122,"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-09-24T19:47:50.309Z","updated_at":"2026-02-02T17:40:12.249Z","avatar_url":"https://github.com/emberjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"ember-jquery-legacy\n==============================================================================\n\nProvides a helper function as specified in [RFC294](https://github.com/emberjs/rfcs/blob/master/text/0294-optional-jquery.md#introducing-ember-jquery-legacy-and-deprecating-jqueryevent-usage),\nthat receives either a [jQuery.Event API](https://api.jquery.com/category/events/event-object/) instance \n(when Ember is running with its jQuery integration enabled) or a native event (no jQuery), and will return a \nnative event without triggering any deprecations. \n\nInstallation\n------------------------------------------------------------------------------\n\n```\nember install ember-jquery-legacy\n```\n\n\nUsage\n------------------------------------------------------------------------------\n\nAs part of the effort to decouple Ember from jQuery, using event object APIs that are specific to `jQuery.Event` such as\n`originalEvent` are deprecated. Especially addons are urged to not use any jQuery specific APIs, so they are able to\nwork in a world without jQuery.\n\nUnfortunatly not all native event properties are available directly on an `jQuery.Event` instance. See the\n[jQuery.Event API](https://api.jquery.com/category/events/event-object/) for details.\n\nFor those other properties it was necessary to get access to the native event object through `originalEvent`. \nTo prevent your code from being coupled to jQuery in this way, use the `normalizeEvent` function provided by this addon, \nwhich will work with our without jQuery to provide the native event without triggering any deprecations.\n\nBefore:\n\n```javascript\n// your event handler:\nclick(event) {\n  let nativeEvent = event.originalEvent;\n  ...\n}\n```\n\nAfter:\n\n```javascript\nimport { normalizeEvent } from 'ember-jquery-legacy';\n\n// your event handler:\nclick(event) {\n  let nativeEvent = normalizeEvent(event);\n  ...\n}\n```\n\nContributing\n------------------------------------------------------------------------------\n\n### Installation\n\n* `git clone \u003crepository-url\u003e`\n* `cd ember-jquery-legacy`\n* `yarn install`\n\n### Linting\n\n* `yarn lint:js`\n* `yarn lint:js --fix`\n\n### Running tests\n\n* `ember test` – Runs the test suite on the current Ember version\n* `ember test --server` – Runs the test suite in \"watch mode\"\n* `ember try:each` – Runs the test suite against multiple Ember versions\n\n### Running the dummy application\n\n* `ember serve`\n* Visit the dummy application at [http://localhost:4200](http://localhost:4200).\n\nFor more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).\n\nLicense\n------------------------------------------------------------------------------\n\nThis project is licensed under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femberjs%2Fember-jquery-legacy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femberjs%2Fember-jquery-legacy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femberjs%2Fember-jquery-legacy/lists"}