Skip to content

Commit a3c23b6

Browse files
committed
fix in cache property
1 parent 749351e commit a3c23b6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

+nix/Block.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
end
88

99
properties(Hidden)
10-
metadataCache = nix.CacheStruct()
10+
metadataCache
1111
end
1212

1313
methods
@@ -19,6 +19,8 @@
1919
obj.add_dyn_relation('sources', @nix.Source);
2020
obj.add_dyn_relation('tags', @nix.Tag);
2121
obj.add_dyn_relation('multiTags', @nix.MultiTag);
22+
23+
obj.metadataCache = nix.CacheStruct();
2224
end;
2325

2426
% -----------------

+nix/Section.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
end
99

1010
properties(Hidden)
11-
propsCache = nix.CacheStruct()
11+
propsCache
1212
end;
1313

1414
properties(Dependent)
@@ -26,6 +26,8 @@
2626

2727
% assign relations
2828
obj.add_dyn_relation('sections', @nix.Section);
29+
30+
obj.propsCache = nix.CacheStruct();
2931
end;
3032

3133
function section = parent(obj)

0 commit comments

Comments
 (0)