I’m working on a web app that has its own look and feel. I want to use jQuery Mobile for the touch events support only.
When I link jquery.mobile.min.js (without li
In case anyone else runs into this (and doesn't need the file off one of jQuery's CDNs), here are the steps I took to extract just the JQM event triggers:
git clone git@github.com:jquery/jquery-mobile
cd jquery-mobile
js/jquery.mobile.js
in your favorite editordefine(...);
statement with define(['./events/touch', './events/orientationchange']);
make
compiled/jquery.mobile.js
and compiled/jquery.mobile.min.js
Now you can use $(el).tap(fn)
and the like without worrying about JQM highjacking your markup!