mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 12:34:47 -04:00
Clean code.
This commit is contained in:
parent
088a0b0839
commit
fc7d5ecfe3
2 changed files with 1 additions and 2 deletions
|
@ -147,7 +147,6 @@ modulejs.define('info', ['$', 'config'], function ($, config) {
|
||||||
|
|
||||||
function addLogin() {
|
function addLogin() {
|
||||||
|
|
||||||
|
|
||||||
$(loginTemp).appendTo('body');
|
$(loginTemp).appendTo('body');
|
||||||
|
|
||||||
if (setup.AS_ADMIN) {
|
if (setup.AS_ADMIN) {
|
||||||
|
|
|
@ -8,7 +8,7 @@ modulejs.define('main', ['_', 'core/event'], function (_, event) {
|
||||||
|
|
||||||
_.each(modulejs.state(), function (state, id) {
|
_.each(modulejs.state(), function (state, id) {
|
||||||
|
|
||||||
if (/^ext\/.+/.test(id)) {
|
if (id.indexOf('ext/') === 0) {
|
||||||
modulejs.require(id);
|
modulejs.require(id);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue