Skip to content

Commit e0d6b5e

Browse files
Clean up comments in curly.ts
Removed comments about WeakMap usage for capturedArgs.
1 parent 65fd5bb commit e0d6b5e

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • packages/@ember/-internals/glimmer/lib/component-managers

packages/@ember/-internals/glimmer/lib/component-managers/curly.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ import {
5353
import ComponentStateBucket from '../utils/curly-component-state-bucket';
5454
import { processComponentArgs } from '../utils/process-args';
5555

56-
// WeakMap to store capturedArgs for each component instance, avoiding
57-
// symbol-keyed properties on the instance itself.
5856
const COMPONENT_ARGS_MAP = new WeakMap<object, CapturedArguments['named']>();
5957

6058
export function getComponentCapturedArgs(
@@ -294,8 +292,7 @@ export default class CurlyComponentManager
294292
let component = ComponentClass.create(props);
295293

296294
// Store capturedArgs in a WeakMap keyed by the component instance so that
297-
// PROPERTY_DID_CHANGE can look them up without requiring symbol-keyed
298-
// properties on the instance.
295+
// PROPERTY_DID_CHANGE can look them up
299296
COMPONENT_ARGS_MAP.set(component, capturedArgs);
300297

301298
let finalizer = _instrumentStart('render.component', initialRenderInstrumentDetails, component);

0 commit comments

Comments
 (0)