Skip to content

Commit 6aabf49

Browse files
author
Vlad Balin
committed
assign -> assignFrom
1 parent 7ae2192 commit 6aabf49

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "type-r",
3-
"version": "1.0.0-rc96",
3+
"version": "1.0.0-rc97",
44
"description": "Reactive serializable data layer for modern JS applications",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

src/transactions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ export abstract class Transactional implements Messenger, Validatable, Traversab
155155
return this;
156156
}
157157

158-
// Assign transactional object "by value", copying aggregated fields.
159-
assign( source : Transactional ) : this {
160-
return this.set( this.__inner_state__, { merge : true } );
158+
// Assign transactional object "by value", copying aggregated items.
159+
assignFrom( source : Transactional ) : this {
160+
return this.set( source.__inner_state__ || source, { merge : true } );
161161
}
162162

163163
// Apply bulk object update without any notifications, and return open transaction.

0 commit comments

Comments
 (0)