Skip to content

Commit e76487d

Browse files
committed
🎨: clean up comments
1 parent d19fdb0 commit e76487d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lively.morphic/components/policy.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -968,8 +968,6 @@ export class StylePolicy {
968968
}
969969

970970
asFullySynthesizedSpec () {
971-
// caching does not work that way, since it requires more dynamicity depending on the event/breakpoint state of each morph in the morph hierarchy. Instead we can only cache on a per morph x state basis, always having to assemble the spec ad hoc.
972-
// if (this._cachedFullySynthesized) return this._cachedFullySynthesized;
973971
const extractBuildSpecs = (specOrPolicy, submorphs) => {
974972
if (specOrPolicy.COMMAND === 'add') {
975973
specOrPolicy = specOrPolicy.props;
@@ -1018,10 +1016,10 @@ export class StylePolicy {
10181016
return synthesized;
10191017
};
10201018
const buildSpec = tree.mapTree(this.spec, extractBuildSpecs, node => node.props?.submorphs || node.submorphs);
1021-
// do not add a master, since that would tigger an application
10221019
const self = this;
10231020
buildSpec.onLoad = function () {
1024-
const policy = self; // PolicyApplicator.for(this, {}, self); // eslint-disable-line no-use-before-define
1021+
const policy = self;
1022+
// do not trigger master setter, since that would cause an application
10251023
this.setProperty('master', policy);
10261024
policy.attach(this);
10271025
};

0 commit comments

Comments
 (0)