Skip to content

Commit 3ad09cf

Browse files
committed
amended previous commit
1 parent b8bee3c commit 3ad09cf

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

samples/dci/js/TransferMoney/TransferMoney.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ var TransferMoney = DCI.Context.extend(function () {
1515
var __context = this;
1616
this.__$SourceAccount = { transferOut: //transfer money out of this account and into the destination account
1717
function () {
18-
var withdraw = __dci_internal.getRoleMember(__context, __context.SourceAccount, "SourceAccount", 'withdraw');
19-
withdraw.call(__context.SourceAccount);
20-
21-
//self.withdraw();
18+
__context.__$SourceAccount.withdraw.call(__context.SourceAccount);
2219
__context.__$DestinationAccount.deposit.call(__context.DestinationAccount);
2320
}
2421
,withdraw: function () {

samples/dci/js/TransferMoney/TransferMoney.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ var TransferMoney = DCI.Context.extend(function() {
2525
role SourceAccount {
2626
//transfer money out of this account and into the destination account
2727
transferOut() {
28-
var withdraw = self['withdraw'];
29-
withdraw.call(self);
30-
31-
//self.withdraw();
28+
self.withdraw();
3229
DestinationAccount.deposit();
3330
}
3431

0 commit comments

Comments
 (0)