Skip to content

Commit 8a658b6

Browse files
author
Vlad Balin
committed
Updated detailed design
1 parent 717b14d commit 8a658b6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/record/transaction.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,10 @@ export class Record extends Transactional implements Owner {
355355
// Or
356356
// Think of creating the multimode constructor packing all the stuff inside. Measure the gain.
357357
/*
358-
function Attributes( values, _attributes, record, options ){
359-
const { clone } = options;
360-
let _a, v;
358+
function Attributes( values, record, options ){
359+
var clone = options.clone,
360+
_attributes = record._attributes,
361+
_a, v;
361362
362363
_a = _attributes.${ key };
363364
v = values.${ key };
@@ -367,8 +368,6 @@ export class Record extends Transactional implements Owner {
367368
...
368369
}
369370
*/
370-
// f( v.${ attr } === void 0 ? ${ create } : v.${ attr } )
371-
// f( a.${ attr }.clone( v.${ attr } ) )
372371
this.forEachAttr( attributes, ( value : any, key : string, attr : AttributeUpdatePipeline ) => {
373372
const next = attributes[ key ] = attr.transform( value, options, void 0, this );
374373
attr.handleChange( next, void 0, this );

0 commit comments

Comments
 (0)