Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

batman-touch-rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

batman-touch-rails

  • 1.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

batman-touch

batman-touch is a simple shim to to add jQuery Mobile touch events to the Batman.js event vocaubulary. For further on the script itself, checkout chantastic/batman-touch.

Installation

Add this line to your application's Gemfile:

gem 'batman-touch-rails'

And then execute:

$ bundle

Usage

Include batman-touch and jquery.mobile in your application.js manifest:

//= require jquery
//= require jquery_ujs
//= require jquery.mobile
//= require batman-touch

Additionally, you can use the clicks-to-taps utility to modify the click registrations to use tap/virtual-mousedown. This allows you to retrofit your existing apps to be mobile-friendly.

// application.js

// ...
//= require batman-touch.clicks-to-taps

Bring your own Batman.js

There are a number of ways you could have batman included. Just be sure to have it loaded before batman-touch.

FAQs

Package last updated on 21 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc