mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: add task.getDelay() method
This commit is contained in:
1 parent
775605f812
commit
5bbce72a68
6 files changed
+17
-4
No files matched your search
@@ -169,12 +169,13 @@ env.addGlobal('datetimeSpan', misc.datetimeSpan);
|
||||
env.addGlobal('paginate', misc.paginate);
|
||||
env.addGlobal('size', misc.size);
|
||||
env.addGlobal('gravatar', misc.gravatar);
|
||||
env.addGlobal('formatSeconds', misc.formatSeconds);
|
||||
env.addGlobal('model', global.Hydro.model);
|
||||
env.addGlobal('ui', global.Hydro.ui);
|
||||
env.addGlobal('isIE', (str) => str.includes('MSIE') || str.includes('rv:11.0'));
|
||||
env.addGlobal('set', (obj, key, val) => {
|
||||
if (val !== undefined) obj[key] = val;
|
||||
else obj = { ...obj, key };
|
||||
else Object.assign(obj, key);
|
||||
return '';
|
||||
});
|
||||
env.addGlobal('findSubModule', (prefix) => {
|
||||
|
||||
Reference in new issue
Block a user