{ "name": "onclick", "description": "A click controller for mouse & touch.", "version": "0.1.0", "author": { "name": "Brian Peacock" }, "main": "src/onClick.js", "repository": { "type": "git", "url": "https://github.com/bpeacock/onClick" }, "dependencies": { "unopinionate": "0.0.x" }, "devDependencies": { "browserify": "3.24.x", "grunt": "~0.4.2", "grunt-contrib-watch": "0.5.x", "grunt-browserify": "1.3.x", "sinon": "~1.8.2", "jQuery": "~1.7.4", "grunt-contrib-qunit": "~0.4.0", "qunitjs": "~1.14.0", "grunt-contrib-uglify": "~0.3.2", "grunt-contrib-jshint": "~0.8.0" }, "scripts": { "test": "grunt test" }, "license": "MIT", "keywords": [], "readme": "onClick.js [![Build Status](https://travis-ci.org/bpeacock/onClick.png?branch=master)](https://travis-ci.org/bpeacock/onClick)\n===============\n\nA click controller for mouse & touch.\n\n- Prevents 300ms delay on touch\n- Touch interactions like scrolling work as expected\n- Handles devices that have both touch and mouse\n- Delegates events for efficiency\n\nInstallation\n------------\n\n```bash\nnpm install onclick\n```\n\nA jQuery-like selector library is required:\n- jQuery 1.4.3+\n- Zepto\n\nUsage\n-----\n\n```javascript\nonClick({\n '#element': function(e) {\n alert(\"I was clicked!\");\n }\n});\n\nonClick('.myclass', function() {\n\n});\n```\n\nCheck out a live [example](http://htmlpreview.github.io/?https://github.com/bpeacock/onClick/blob/master/examples/index.html).\n\nDevelopment\n-----------\n\nTo Build: `grunt build`\n\nTo Develop: `grunt watch`\n\nTo Test: `npm test`\n \n", "readmeFilename": "README.md", "bugs": { "url": "https://github.com/bpeacock/onClick/issues" }, "homepage": "https://github.com/bpeacock/onClick", "_id": "onclick@0.1.0", "_shasum": "00db9cf7be6a38ef1261550434e967329cfbe16c", "_from": "onclick@>=0.1.0 <1.0.0-0", "_resolved": "https://registry.npmjs.org/onclick/-/onclick-0.1.0.tgz" }