jQuery Mobile活动 - 独立?

mik*_*ike 4 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的测试,甚至alpha版本,我想用最新的... 有任何想法吗?

sgu*_*uha 5

更新 您现在可以为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/文件夹中提供