mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 12:34:47 -04:00
Updates to modulejs 0.1.
This commit is contained in:
parent
9266be9708
commit
cad50f76e2
36 changed files with 360 additions and 242 deletions
|
@ -1,5 +1,5 @@
|
|||
|
||||
module.define('model/entry', [jQuery, 'core/types'], function ($, types) {
|
||||
modulejs.define('model/entry', ['jQuery', 'core/types'], function ($, types) {
|
||||
|
||||
var domain = document.domain,
|
||||
location = document.location.pathname.replace(/[^\/]*$/, ''),
|
||||
|
@ -132,7 +132,14 @@ module.define('model/entry', [jQuery, 'core/types'], function ($, types) {
|
|||
return self;
|
||||
},
|
||||
|
||||
folderstatus = module.isDefined('ext/folderstatus') ? module.require('ext/folderstatus') : {},
|
||||
// folderstatus = module.isDefined('ext/folderstatus') ? module.require('ext/folderstatus') : {},
|
||||
folderstatus = (function () {
|
||||
|
||||
var id = 'ext/folderstatus',
|
||||
res = modulejs.require(new RegExp('^' + id + '$'));
|
||||
|
||||
return res.id ? res.id : {};
|
||||
}()),
|
||||
|
||||
fetchStatus = function (absHref, callback) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue