[database] remove transaction listener instance from class

This commit is contained in:
Salakar 2018-02-13 13:58:52 +00:00
parent a108d43e95
commit 609324e292
1 changed files with 1 additions and 2 deletions

View File

@ -21,14 +21,13 @@ const generateTransactionId = (): number => transactionId++;
*/
export default class TransactionHandler {
_database: Database;
_transactionListener: Function;
_transactions: { [number]: Object };
constructor(database: Database) {
this._transactions = {};
this._database = database;
this._transactionListener = SharedEventEmitter.addListener(
SharedEventEmitter.addListener(
getAppEventName(this._database, 'database_transaction_event'),
this._handleTransactionEvent.bind(this)
);