mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 12:34:47 -04:00
Minor refactorings.
This commit is contained in:
parent
cad50f76e2
commit
84a2ed582f
2 changed files with 8 additions and 8 deletions
|
@ -132,13 +132,13 @@ modulejs.define('model/entry', ['jQuery', 'core/types'], function ($, types) {
|
|||
return self;
|
||||
},
|
||||
|
||||
// folderstatus = module.isDefined('ext/folderstatus') ? module.require('ext/folderstatus') : {},
|
||||
folderstatus = (function () {
|
||||
|
||||
var id = 'ext/folderstatus',
|
||||
res = modulejs.require(new RegExp('^' + id + '$'));
|
||||
try {
|
||||
return modulejs.require('ext/folderstatus');
|
||||
} catch (e) {}
|
||||
|
||||
return res.id ? res.id : {};
|
||||
return [];
|
||||
}()),
|
||||
|
||||
fetchStatus = function (absHref, callback) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue