@@ -428,7 +428,7 @@ function runComputedEffects(inst, changedProps, oldProps, hasPaths) {
428
428
}
429
429
let info ;
430
430
while ( ( info = queue . shift ( ) ) ) {
431
- if ( runComputedEffect ( inst , '' , changedProps , oldProps , info , hasPaths ) ) {
431
+ if ( runComputedEffect ( inst , '' , changedProps , oldProps , info ) ) {
432
432
enqueueEffectsFor ( info . methodInfo , computeEffects , queue , order , hasPaths ) ;
433
433
}
434
434
}
@@ -452,9 +452,9 @@ function runComputedEffects(inst, changedProps, oldProps, hasPaths) {
452
452
/**
453
453
* Inserts a computed effect into a queue, given the specified order. Performs
454
454
* the insert using a binary search.
455
- *
455
+ *
456
456
* Used by `orderedComputed: true` computed property algorithm.
457
- *
457
+ *
458
458
* @param {Object } info Property effects metadata
459
459
* @param {Array<Object> } queue Ordered queue of effects
460
460
* @param {Map<string,number> } order Map of computed property name->topological
@@ -466,7 +466,7 @@ const insertEffect = (info, queue, order) => {
466
466
let idx = - 1 ;
467
467
while ( start <= end ) {
468
468
const mid = ( start + end ) >> 1 ;
469
- // Note `methodInfo` is where the computed property name is stored in
469
+ // Note `methodInfo` is where the computed property name is stored in
470
470
// the effect metadata
471
471
const cmp = order . get ( queue [ mid ] . methodInfo ) - order . get ( info . methodInfo ) ;
472
472
if ( cmp < 0 ) {
@@ -487,14 +487,14 @@ const insertEffect = (info, queue, order) => {
487
487
/**
488
488
* Inserts all downstream computed effects invalidated by the specified property
489
489
* into the topologically-sorted queue of effects to be run.
490
- *
490
+ *
491
491
* Used by `orderedComputed: true` computed property algorithm.
492
- *
492
+ *
493
493
* @param {string } prop Property name
494
494
* @param {Object } computeEffects Computed effects for this element
495
- * @param {Array<Obbject > } queue Topologically-sorted queue of computed effects
495
+ * @param {Array<Object > } queue Topologically-sorted queue of computed effects
496
496
* to be run
497
- * @param {Map<string,numer > } order Map of computed property name->topological
497
+ * @param {Map<string,number > } order Map of computed property name->topological
498
498
* sort order
499
499
* @param {boolean } hasPaths True with `changedProps` contains one or more paths
500
500
*/
@@ -515,7 +515,7 @@ const enqueueEffectsFor = (prop, computeEffects, queue, order, hasPaths) => {
515
515
516
516
/**
517
517
* Generates and retrieves a memoized map of computed property name to its
518
- * topologically-sorted order.
518
+ * topologically-sorted order.
519
519
*
520
520
* The map is generated by first assigning a "dependency count" to each property
521
521
* (defined as number properties it depends on, including its method for
@@ -531,8 +531,8 @@ const enqueueEffectsFor = (prop, computeEffects, queue, order, hasPaths) => {
531
531
*
532
532
* @param {!Polymer_PropertyEffects } inst The instance to retrieve the computed
533
533
* effect order for.
534
- * @return {Map<string,numbber > } Map of computed property name->topological sort
535
- * order
534
+ * @return {Map<string,number > } Map of computed property name->topological sort
535
+ * order
536
536
*/
537
537
function getComputedOrder ( inst ) {
538
538
let ordered = inst . constructor . __orderedComputedDeps ;
@@ -579,8 +579,8 @@ function dependencyCounts(inst) {
579
579
const counts = { } ;
580
580
const ready = [ ] ;
581
581
for ( let p in props ) {
582
- const info = infoForComputed [ p ] ;
583
- if ( info ) {
582
+ const info = infoForComputed [ p ] ;
583
+ if ( info ) {
584
584
// Be sure to add the method name itself in case of "dynamic functions"
585
585
counts [ p ] = info . args . length + ( info . dynamicFn ? 1 : 0 ) ;
586
586
} else {
@@ -600,7 +600,6 @@ function dependencyCounts(inst) {
600
600
* @param {?Object } changedProps Bag of current property changes
601
601
* @param {?Object } oldProps Bag of previous values for changed properties
602
602
* @param {? } info Effect metadata
603
- * @param {boolean } hasPaths True with `changedProps` contains one or more paths
604
603
* @return {boolean } True when the property being computed changed
605
604
* @private
606
605
*/
@@ -2438,7 +2437,7 @@ export const PropertyEffects = dedupingMixin(superClass => {
2438
2437
}
2439
2438
const info = createMethodEffect ( this , sig , TYPES . COMPUTE , runComputedEffect , property , dynamicFn ) ;
2440
2439
// Effects are normally stored as map of dependency->effect, but for
2441
- // ordered computation, we also need tree of computedProp->dependencies
2440
+ // ordered computation, we also need tree of computedProp->dependencies
2442
2441
ensureOwnEffectMap ( this , COMPUTE_INFO ) [ property ] = info ;
2443
2442
}
2444
2443
0 commit comments