summaryrefslogtreecommitdiff
path: root/script/vm/eachField.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/eachField.lua')
-rw-r--r--script/vm/eachField.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/vm/eachField.lua b/script/vm/eachField.lua
index fabb11c7..19ac77e9 100644
--- a/script/vm/eachField.lua
+++ b/script/vm/eachField.lua
@@ -45,6 +45,11 @@ function vm.getFields(source, deep)
or getFieldsBySource(source, deep)
vm.getCache('eachFieldOfGlobal')[name] = cache
return cache
+ elseif guide.isDocClass(source) then
+ local cache = vm.getCache('eachFieldOfDocClass')[source]
+ or getFieldsBySource(source, deep)
+ vm.getCache('eachFieldOfDocClass')[source] = cache
+ return cache
else
return getFieldsBySource(source, deep)
end