mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-22 13:15:49 +00:00
JS: Fix Account class realtime event processing.
This commit is contained in:
@@ -21,6 +21,7 @@ var Account = function (remote, account) {
|
|||||||
this._remote = remote;
|
this._remote = remote;
|
||||||
this._account = UInt160.from_json(account);
|
this._account = UInt160.from_json(account);
|
||||||
this._account_id = this._account.to_json();
|
this._account_id = this._account.to_json();
|
||||||
|
this._subs = 0;
|
||||||
|
|
||||||
// Ledger entry object
|
// Ledger entry object
|
||||||
// Important: This must never be overwritten, only extend()-ed
|
// Important: This must never be overwritten, only extend()-ed
|
||||||
@@ -61,8 +62,8 @@ var Account = function (remote, account) {
|
|||||||
var changed = false;
|
var changed = false;
|
||||||
msg.mmeta.each(function (an) {
|
msg.mmeta.each(function (an) {
|
||||||
if (an.entryType === 'AccountRoot' &&
|
if (an.entryType === 'AccountRoot' &&
|
||||||
an.fields.Account === this._account_id) {
|
an.fields.Account === self._account_id) {
|
||||||
extend(this._entry, an.fieldsNew, an.fieldsFinal);
|
extend(self._entry, an.fieldsNew, an.fieldsFinal);
|
||||||
changed = true;
|
changed = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user