jQuery Mobile活动 – 独立?

我正在尝试将jQuery Mobile事件( https://github.com/jquery/jquery-mobile/blob/master/js/jquery.mobile.event.js )作为一个独立的“插件”工作,但我可以似乎无法弄清楚我需要改变什么。

我知道这是可能的,因为我使用了这个: https : //gist.github.com/743400过去它工作…该文件基于测试版甚至是JQM的alpha版本,我想使用最新版本… 有任何想法吗?

更新您现在可以为jQuery mobile 1.2 http://jquerymobile.com/download-builder/构建自定义程序包,并选择项目所需的事件


以下为jquery mobile 1.1-stable分支工作:

  1. 克隆来自github的repo https://github.com/jquery/jquery-mobile
  2. git checkout 1.1-stable
  3. 编辑第131行的Makefile https://github.com/jquery/jquery-mobile/blob/1.1-stable/Makefile#L131来构建jquery.mobile.event而不是jquery.mobile
  4. 运行make js来编译事件所需的模块
  5. 内置版本将在compiled/文件夹中可用