Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit b25604a

Browse files
committed
adapt to new observe-ms api.
1 parent 266a8c5 commit b25604a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/instance/properties.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,12 @@
129129
log.bind && console.log(LOG_BIND_PROPS, inB.localName || 'object', inPath, inA.localName, inProperty);
130130
// capture A's value if B's value is null or undefined,
131131
// otherwise use B's value
132-
var v = observable.getValue();
132+
// TODO(sorvell): need to review, can do with ObserverTransform
133+
var v = observable.discardChanges();
133134
if (v === null || v === undefined) {
134135
observable.setValue(inA[inProperty]);
135136
}
136-
return Observer.defineProperty(inA, inProperty, observable);
137+
return Observer.defineComputedProperty(inA, inProperty, observable);
137138
}
138139

139140
// logging

0 commit comments

Comments
 (0)