mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-03 08:38:41 -04:00
Clean code.
This commit is contained in:
parent
6f5446f218
commit
e99bd06370
3 changed files with 10 additions and 13 deletions
2
.jscsrc
2
.jscsrc
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
// "disallowCommaBeforeLineBreak": true,
|
// "disallowCommaBeforeLineBreak": true,
|
||||||
"disallowDanglingUnderscores": {
|
"disallowDanglingUnderscores": {
|
||||||
"allExcept": ["_exception"]
|
"allExcept": ["_exception", "_private"]
|
||||||
},
|
},
|
||||||
"disallowEmptyBlocks": true,
|
"disallowEmptyBlocks": true,
|
||||||
"disallowImplicitTypeConversion": [
|
"disallowImplicitTypeConversion": [
|
||||||
|
|
|
@ -21,11 +21,6 @@
|
||||||
"browser": true,
|
"browser": true,
|
||||||
|
|
||||||
"globals": {
|
"globals": {
|
||||||
"jQuery": false,
|
"modulejs": false
|
||||||
"marked": false,
|
|
||||||
"Modernizr": false,
|
|
||||||
"modulejs": false,
|
|
||||||
"Prism": false,
|
|
||||||
"_": false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,15 +9,17 @@
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
modulejs.define('$', function () { return jQuery; });
|
var win = window;
|
||||||
modulejs.define('_', function () { return _; });
|
|
||||||
modulejs.define('marked', function () { return marked; });
|
modulejs.define('$', function () { return win.jQuery; });
|
||||||
modulejs.define('modernizr', function () { return Modernizr; });
|
modulejs.define('_', function () { return win._; });
|
||||||
modulejs.define('prism', function () { return Prism; });
|
modulejs.define('marked', function () { return win.marked; });
|
||||||
|
modulejs.define('modernizr', function () { return win.Modernizr; });
|
||||||
|
modulejs.define('prism', function () { return win.Prism; });
|
||||||
|
|
||||||
// @include "inc/**/*.js"
|
// @include "inc/**/*.js"
|
||||||
|
|
||||||
var $ = jQuery;
|
var $ = win.jQuery;
|
||||||
|
|
||||||
if ($('html').hasClass('no-browser')) {
|
if ($('html').hasClass('no-browser')) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue