mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-04 08:59:39 -04:00
Refactor JS.
This commit is contained in:
parent
922f83357f
commit
2caaccabc0
8 changed files with 48 additions and 72 deletions
|
@ -4,6 +4,7 @@
|
|||
// @include "lib/modernizr-*.js"
|
||||
if (window.attachEvent && !window.addEventListener) { throw 'no-browser'; }
|
||||
// @include "lib/underscore-*.js"
|
||||
// @include "lib/markdown-*.js"
|
||||
// @include "lib/modulejs-*.js"
|
||||
// @include "lib/moment-*.js"
|
||||
// @include "lib/json2-*.js"
|
||||
|
@ -13,6 +14,7 @@ if (window.attachEvent && !window.addEventListener) { throw 'no-browser'; }
|
|||
// @include "lib/jquery-*.js"
|
||||
// @include "lib/jquery.fracs-*.js"
|
||||
// @include "lib/jquery.mousewheel-*.js"
|
||||
// @include "lib/jquery.qrcode-*.js"
|
||||
// @include "lib/jquery.scrollpanel-*.js"
|
||||
|
||||
// app
|
||||
|
@ -22,6 +24,7 @@ if (window.attachEvent && !window.addEventListener) { throw 'no-browser'; }
|
|||
|
||||
/*global jQuery, Modernizr, moment, _ */
|
||||
modulejs.define('$', function () { return jQuery; });
|
||||
modulejs.define('markdown', function () { return markdown; });
|
||||
modulejs.define('modernizr', function () { return Modernizr; });
|
||||
modulejs.define('moment', function () { return moment; });
|
||||
modulejs.define('_', function () { return _; });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue