jQuery Mobile活动 - 独立?

时间:2012-02-23 17:04:06

标签: javascript jquery jquery-mobile

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

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

1 个答案:

答案 0 :(得分:5)

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


以下对jquery mobile 1.1-stable分支起作用了:

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