{"id":18779318,"url":"https://github.com/webcaetano/jinx-events","last_synced_at":"2025-12-17T23:30:16.938Z","repository":{"id":31531697,"uuid":"35096236","full_name":"webcaetano/jinx-events","owner":"webcaetano","description":"Jinx module for prototype events","archived":false,"fork":false,"pushed_at":"2015-05-06T04:43:33.000Z","size":140,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-29T10:28:53.398Z","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/webcaetano.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-05T11:52:01.000Z","updated_at":"2015-05-06T04:43:34.000Z","dependencies_parsed_at":"2022-09-04T16:00:12.614Z","dependency_job_id":null,"html_url":"https://github.com/webcaetano/jinx-events","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webcaetano%2Fjinx-events","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webcaetano%2Fjinx-events/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webcaetano%2Fjinx-events/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webcaetano%2Fjinx-events/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webcaetano","download_url":"https://codeload.github.com/webcaetano/jinx-events/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239690526,"owners_count":19681118,"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-11-07T20:19:36.523Z","updated_at":"2025-12-17T23:30:16.890Z","avatar_url":"https://github.com/webcaetano.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [![Imgur](http://i.imgur.com/FHjshUv.png)](https://github.com/webcaetano/jinx)\n\n[Jinx](https://github.com/webcaetano/jinx) module for chaining prototype events\n\n## Installation\n```\nnpm install jinx-events\n```\n\nExample\n```javascript\nrequire('jinx-events');\n\nvar myMc = new foo();\n\nmyMc.x = 250;\nmyMc.y = 100;\naddChild(myMc);\n\nmyMc.$bind('enterFrame',function(){\n\tthis.rotation+=0.5; // it will spin\n}).$bind('click',function(){\n\tthis.y+=5; // it will go down a when clicked\n}).$hover(function(){\n\tthis.alpha=0.5; // it will be 50% alpha when mouse hover\n},function(){\n\tthis.alpha=1; // it will be 0% alpha when mouse out\n})\n\n```\n\n## Events suported.\n\n- enterFrame\n- removed\n- load\n- mouseMove\n- mouseUp\n- mouseDown\n- mouseOver\n- mouseOut\n- releaseOutside\n- click\n- mouseWhell\n- rollOut\n- rollOver\n- rightClick\n\n## Alias\n\n- $click = $bind('click');\n- $hover([function mouseOver],[function mouseOut]) = $bind('mouseOver')\n- $mouseOver([function mouseOver],[function mouseOut]) = $bind('mouseOver')\n- $mouseMove = $bind('mouseMove');\n- $mouseOut = $bind('mouseOut');\n- $mouseUp = $bind('mouseUp');\n- $enterFrame = $bind('enterFrame');\n- $mouseDown([function mouseDown],[function release || releaseOutside]) = $bind('mouseDown')\n\n---------------------------------\n\nThe MIT [License](https://raw.githubusercontent.com/webcaetano/jinx/master/LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebcaetano%2Fjinx-events","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebcaetano%2Fjinx-events","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebcaetano%2Fjinx-events/lists"}