{"id":17991407,"url":"https://github.com/jareware/backbone-touchbind","last_synced_at":"2025-03-25T23:32:08.892Z","repository":{"id":2263614,"uuid":"3219673","full_name":"jareware/backbone-touchbind","owner":"jareware","description":null,"archived":false,"fork":false,"pushed_at":"2012-03-09T21:48:46.000Z","size":202,"stargazers_count":12,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T18:09:35.690Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"alexsaveliev/srclib-basic","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jareware.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-01-19T17:51:14.000Z","updated_at":"2015-09-21T07:53:55.000Z","dependencies_parsed_at":"2022-08-26T06:22:17.802Z","dependency_job_id":null,"html_url":"https://github.com/jareware/backbone-touchbind","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/jareware%2Fbackbone-touchbind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jareware%2Fbackbone-touchbind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jareware%2Fbackbone-touchbind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jareware%2Fbackbone-touchbind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jareware","download_url":"https://codeload.github.com/jareware/backbone-touchbind/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245562126,"owners_count":20635870,"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-29T19:21:56.235Z","updated_at":"2025-03-25T23:32:04.374Z","avatar_url":"https://github.com/jareware.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"backbone-touchbind\n==================\n\nQuick PoC to demonstrate convenient binding of \"fastclick\" events to [Backbone Views](http://documentcloud.github.com/backbone/).  The fastclicks (or \"fast buttons\") themselves are a solved problem, so I use the (lovely) [Mobile Boilerplate](http://html5boilerplate.com/mobile) for that.\n\nIdea\n----\n\nBinding the `MBP.fastButton`s \"manually\" to each applicable element within the View, and using [custom jQuery events](http://api.jquery.com/trigger/) to combine them seamlessly with the listeners bound to `this.el` by `Backbone.View.delegateEvents()`.  This \"manual work\" can of course be \"automated\", see below.\n\nUsage\n-----\n\nDuring View initialization (or whenever you recreate your view elements, such as when you'd re-render a template into `this.el`), call `this.addFastButtons()`.  To avoid having to repeat yourself, put it to a shared base class for your views.  The only thing you have to do, then, to use fastclicks in derived views is:\n\n    events: {\n        'fastclick button': 'handleFastClick'\n    }\n\n    handleFastClick: function() {\n        // do stuff\n    }\n\nLicense\n-------\n\nhttp://sam.zoy.org/wtfpl/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjareware%2Fbackbone-touchbind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjareware%2Fbackbone-touchbind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjareware%2Fbackbone-touchbind/lists"}