Skip to content

Commit

Permalink
Minor comment updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Mar 4, 2019
1 parent 832fcde commit 9ed3189
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/mixins/property-effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ let DataEffect; //eslint-disable-line no-unused-vars
*
* @param {Object} model Prototype or instance
* @param {string} type Property effect type
* @param {boolean=} cloneArrays Clone any arrays mapped in the map
* @param {boolean=} cloneArrays Clone any arrays assigned to the map when
* extending a superclass map onto this subclass
* @return {Object} The own-property map of effects for the given type
* @private
*/
Expand Down Expand Up @@ -2356,7 +2357,11 @@ export const PropertyEffects = dedupingMixin(superClass => {
throw new Error("Malformed computed expression '" + expression + "'");
}
const info = createMethodEffect(this, sig, TYPES.COMPUTE, runComputedEffect, property, dynamicFn);
ensureOwnEffectMap(this, COMPUTE_INFO)[property] = info;
if (orderedComputed) {
// Effects are normally stored as map of dependency->effect, but for
// ordered computation, we also need tree of computedProp->dependencies
ensureOwnEffectMap(this, COMPUTE_INFO)[property] = info;
}
}

/**
Expand Down

0 comments on commit 9ed3189

Please sign in to comment.